Skip to content

Commit

Permalink
Add a note on CPU scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Nov 1, 2023
1 parent 7dbd38a commit ac3cabb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac3cabb

Please sign in to comment.