My processor is running at 40% of its maximum speed, I want it to use 100% of the speed, all the time. I searched on Google but the tutorials are very old and they all differ.
So, how can I permanently disable CPU frequency scaling and set my system to performance mode?
Please, only terminal based solutions, I don't want applets.
I'm using Xubuntu 14.04 x64.
After struggling with ondemand for a while, I will share how to permanently disable it in Ubuntu and its derivates.
sudo apt-get install cpufrequtils
Then edit the following file (if it doesn't exist, create it):
sudo vim /etc/default/cpufrequtils
And add the following line to it:
Save and exit.
Now you need to disable ondemand daemon, otherwise after you reboot the settings will be overwritten.
sudo update-rc.d ondemand disable
And you are done!
You can check your settings with:
It will show a block of information for every core your processor has. Just check if all of then are in performance mode, and at the maximum speed of your processor.
The Debian Wiki says that sysfsutils is necessary in order to maintain the settings across reboots, but that is untrue. Also, enabling sysfsutils make my system unstable, so it's not recommended.
sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor for GOVERNOR in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" | sudo tee $GOVERNOR; done
Replace ondemand with performance. Repeat for every core (increase cpu0: cpu1, cpu2).