From 4463a60efe6d70ae9af2d58261f30d2fff06920f Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Thu, 2 Nov 2017 16:34:06 +0100 Subject: [PATCH] Mention how to disable CPU frequency scaling while running the benchmark. (#466) Describe how to use the cpupower command to disable CPU frequency scaling. Document this, since there are other ways that don't see to have the same effect. See #325 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6eb63f20..67209090 100644 --- a/README.md +++ b/README.md @@ -835,6 +835,18 @@ Anything older *may* work. Note: Using the library and its headers in C++03 is supported. C++11 is only required to build the library. +## Disable CPU frequency scaling +If you see this error: +``` +***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead. +``` +you might want to disable the CPU frequency scaling while running the benchmark: +```bash +sudo cpupower frequency-set --governor performance +./mybench +sudo cpupower frequency-set --governor powersave +``` + # Known Issues ### Windows