When I run the google benchmark I get a WARNING saying that cpu scaling is enabled. Is that a feature that I can toggle at build via flags or at runtime via arguments or is it a system setting?
1 Answer
As stated in google benchmark documentation, to disable CPU scaling use cpupower
tool.
sudo cpupower frequency-set --governor performance
./mybench
sudo cpupower frequency-set --governor powersave
-
In ubuntu the necessary tools can be installed with
sudo apt install linux-tools-common cpupower
.– alfCSep 3, 2021 at 3:46