How to set CPU frequency to highest?

How do I set the CPU frequency scaling governor for all cores at once?

  • I'd like to set the CPU frequency scaling governor for all cores at once instead of doing it individually for each core. Is there a way to do this? (I know it would be easy to echo the governor to /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor, but I'm not looking for a custom solution.)

  • Answer:

    I googled a lot and I think it's just not possible, so I added the following one-liner to my .bashrc: function setgov () { echo "$1" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor } Now I can run something like setgov ondemand and all cores will switch to the ondemand governor.

htorque at Ask Ubuntu Visit the source

Was this solution helpful to you?

Other answers

I'm still a linux noob but don't you think cpufrequtils lets u do it by using (its not bundled in the Ubuntu OS but is there in the repository) sudo apt-get install cpufrequtils cpufreq-set -r -g performance #-r for related (all) the cores

user49449

Check out Jupiter: https://launchpad.net/~webupd8team/+archive/jupiter It's a power mgmt daemon that runs in the background and will govern your cores on-demand. http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html

sfeole

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.