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
Observe CPU governor settings when on a known platform (Linux: /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor text file, will usually be ondemand, we want performance) and warn if scaling is turned on
If anyone knows how to detect the equivalent thing for other OSes, please share :)
The text was updated successfully, but these errors were encountered:
As described by @jlb6740 just now over in #138, it would probably be even better to check for a mode that explicitly keeps a constant CPU frequency. The userspace governor is one such option, as long as the parameters are explicitly set for the same frequency on all cores and no userspace daemon is manipulating them. Perhaps we could just check that governor is one of userspace or performance and print a warning with instructions if not.
Along the same lines, we could detect if SMT (hyperthreading) is enabled by parsing /proc/cpuinfo and warn if so; this can lead to unreliable measurements.
Another way to check for varying CPU frequency more empirically would be to parse /proc/cpuinfo for the MHz lines and check these periodically during a benchmarking run to make sure they don't vary, and are the same (within real-world engineering margin) across all cores.
From #138:
If anyone knows how to detect the equivalent thing for other OSes, please share :)
The text was updated successfully, but these errors were encountered: