Skip to content

Commit ac3cabb

Browse files
committed
Add a note on CPU scaling
1 parent 7dbd38a commit ac3cabb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ Enable unrestricted use of perf counters:
1010
# echo -1 > /proc/sys/kernel/perf_event_paranoid
1111
```
1212

13+
## Disable CPU scaling
14+
15+
Set the scaling governer of all your cpus to `performance`:
16+
17+
```
18+
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
19+
echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
20+
...
21+
...
22+
echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
23+
```
24+
1325
## Generating the eventlog
1426

1527
To generate the event log, we need to compile the program with the eventlog enabled

0 commit comments

Comments
 (0)