Skip to content
Snippets Groups Projects
Commit 865ee48f authored by psychocrypt's avatar psychocrypt
Browse files

disable prefetch by default

- allow to disable prefetch on systems without hardware aes
- set default disable memory prefetch
parent 741bee2e
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,7 @@
* consume much less power (as less cores are working), but will max out at around 80-85% of
* the maximum performance.
*
* no_prefetch - This mode meant for large pages only. It will generate an error if running on slow memory
* Some sytems can gain up to extra 5% here, but sometimes it will have no difference or make
* no_prefetch - Some sytems can gain up to extra 5% here, but sometimes it will have no difference or make
* things slower.
*
* affine_to_cpu - This can be either false (no affinity), or the CPU core number. Note that on hyperthreading
......@@ -22,8 +21,8 @@
*
*/
"cpu_threads_conf" : [
{ "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 1 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
],
/*
......
......@@ -139,9 +139,9 @@ bool jconf::GetThreadConfig(size_t id, thd_cfg &cfg)
cfg.bDoubleMode = mode->GetBool();
cfg.bNoPrefetch = no_prefetch->GetBool();
if(!bHaveAes && (cfg.bDoubleMode || cfg.bNoPrefetch))
if(!bHaveAes && cfg.bDoubleMode)
{
printer::inst()->print_msg(L0, "Invalid thread confg - low_power_mode and no_prefetch are unsupported on CPUs without AES-NI.");
printer::inst()->print_msg(L0, "Invalid thread confg - low_power_mode are unsupported on CPUs without AES-NI.");
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment