Feed on
Posts
Comments

If you are control freak, perhaps you might want to take control of your CPU depending on your need. Firstly, you should be able to check what is the current speed of your CPU. Here is the command.

cat /proc/cpuinfo | grep -i Mhz

You will see your CPU speed in Mhz. To take control of your CPU speed, you need to install cpufreq utility.

sudo apt-get install cpufrequtils

There are four modes come with the utility. They are as follow:

  • ondemand

CPU frequency is scaled based on load.

  • conservative

The CPUfreq governor "conservative", much like the "ondemand" governor, sets the CPU depending on the current usage. It differs in behaviour in that it gracefully increases and decreases the CPU speed rather than jumping to max speed the moment there is any load on the CPU. This behaviour more suitable in a battery powered environment.

  • performance

CPU only runs at max frequency regardless of load.

  • powersave

CPU only runs at min frequency regardless of load.

Depending on your need, you can set cpu freq as you desire. For example: to change to ondemand mode, type this command

cpufreq-set -g ondemand

In case if you have more than one CPU, you need to repeat the command with option c. You can check how many CPU you have by typing

ls /sys/devices/system/cpu/

To set the cpufreq for second cpu, you need to use option c as follow:

cpufreq-set -c 1 -g ondemand

I hope this will be helpful. Any question? Leave a comment as usual.

 

Source : Ubuntuguide

The following posts are interesting too

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.