You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In old versions of the Nomad ( before #18146 ) cpu_total_compute was calculated as a result of CPU max_frequency from file 'cpuinfo_max_freq' in Linux cpuMaxFile = sysRoot + "/cpu/cpu%d/cpufreq/cpuinfo_max_freq"
or used BaseSpeed if the cpuMaxFile doesn't exist
In the current version, Nomad always uses BaseSpeed for 'cpu.totalcompute'
Using the "max speed" is nonsensical - Intel and AMD both set this value to a speed that is achievable by a single core maybe for a few milliseconds. In contrast the base speed is highest speed sustainable by all cores indefinitely.
Ok. So, what is the reason to use MaxSpeed in the Nomad codebase?
Before version 1.7, Nomad used MaxSpeed as default, now you say that is BAD, but there are a lot of places where MaxSpeed is calculated and used. Maybe need just to remove this code?
In old versions of the Nomad ( before #18146 ) cpu_total_compute was calculated as a result of CPU max_frequency from file 'cpuinfo_max_freq' in Linux
cpuMaxFile = sysRoot + "/cpu/cpu%d/cpufreq/cpuinfo_max_freq"
or used BaseSpeed if the cpuMaxFile doesn't exist
In the current version, Nomad always uses BaseSpeed for 'cpu.totalcompute'
and Client page in Nomad shows:
I'm not an expert in Golang but maybe the main issue in this part of code
When BaseSpeed is set, MaxSpeed will never used
So I change it to
And Nomad start using MaxSpeed
Maybe we should use this behavior as default?
Commit: revverse@dedc5ec
UPD: Affected versions - 1.7.x
The text was updated successfully, but these errors were encountered: