From 1626fca07e08c11629dc3cfc7e500339fac22ffb Mon Sep 17 00:00:00 2001 From: Adithya Kumar Date: Wed, 1 Nov 2023 23:46:55 +0530 Subject: [PATCH] Add a note on CPU scaling --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 236d401..9c02456 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,18 @@ Enable unrestricted use of perf counters: # echo -1 > /proc/sys/kernel/perf_event_paranoid ``` +## Disable CPU scaling + +Set the scaling governer of all your cpus to `performance`: + +``` +echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor +echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor +... +... +echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor +``` + ## Generating the eventlog To generate the event log, we need to compile the program with the eventlog enabled