Skip to content

Instantly share code, notes, and snippets.

@vemacs
Created December 4, 2015 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemacs/325c399ed8088b9df4a9 to your computer and use it in GitHub Desktop.
Save vemacs/325c399ed8088b9df4a9 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo apt-get install -y cpufrequtils
numcores=$(expr `cpufreq-info | grep -c driver` - 1)
for f in `seq 0 $numcores`
do
sudo cpufreq-set -g performance -c $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment