Posted: . At: 9:27 AM. This was 4 years ago. Post ID: 14551
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to turn off the ondemand CPU governor on an Ubuntu Linux machine.


The default CPU governor on an Ubuntu machine sets it to use an ondemand CPU setting that will use the lowest CPU speed and then set it higher when it is needed, but it does not always work very well. But it can be fixed.

Dsiable the ondemand CPU governor.

┌─[jason@darkstar][~]
└──╼ $echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
GOVERNOR="performance"

Then restart the service to apply the changes witohut needing to re-boot.

┌─[jason@darkstar][~]
└──╼ $sudo /etc/init.d/cpufrequtils restart
[ ok ] Restarting cpufrequtils (via systemctl): cpufrequtils.service.

TThen use the cpufreq-info command to get the current CPU frequency and see if it worked.

┌─[jason@darkstar][~]
└──╼ $cpufreq-info | tail -n 2
  current CPU frequency is 3.10 GHz.
  cpufreq stats: 3.10 GHz:24.87%, 2.80 GHz:0.02%, 2.40 GHz:0.10%, 1.90 GHz:0.83%, 1.40 GHz:74.18%  (766)

This should really help out if a user has an Ubuntu installation that is annoying and they wish to force the CPU speed manually.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.