Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google microbenchmarking cpu scaling warning

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?

like image 542
Tandura Avatar asked Jul 15 '16 11:07

Tandura


1 Answers

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
like image 104
Paweł Bylica Avatar answered Oct 01 '22 17:10

Paweł Bylica