Skip to content

Instantly share code, notes, and snippets.

@Harkishen-Singh
Last active March 18, 2021 11:59
Show Gist options
  • Save Harkishen-Singh/f2ecd25aaab404d71fad4d8c9e37413e to your computer and use it in GitHub Desktop.
Save Harkishen-Singh/f2ecd25aaab404d71fad4d8c9e37413e to your computer and use it in GitHub Desktop.

To show CPU frequency in linux,

cat /proc/cpuinfo | grep "cpu MHz"

limiting CPU throttling https://dunterov.github.io/cpu-freq/

set max CPU frequency: sudo cpupower --cpu all frequency-set --max 1500MHz

during go benchmarks, change this to sudo cpupower --cpu all frequency-set --max 300MHz and you are ready to go.

Installing cpupower on fedora is done by: sudo dnf install kernel-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment