Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:cpu_frequency_scaling_basics [2011/11/20 15:11] – [#GOVERNORS] bmarkus | wiki:cpu_frequency_scaling_basics [2014/12/26 06:43] (current) – bmarkus | ||
---|---|---|---|
Line 3: | Line 3: | ||
To reduce power consumption is essential for portable computers but there are no reason not to use on desktop machines. You can save power turning off not needed hardware components like WiFi, Bluetooth, turning off or reduce monitor backlight, spinning down HDD and to control CPU frequency. | To reduce power consumption is essential for portable computers but there are no reason not to use on desktop machines. You can save power turning off not needed hardware components like WiFi, Bluetooth, turning off or reduce monitor backlight, spinning down HDD and to control CPU frequency. | ||
- | TC4 activates CPU frequency scaling by default at startup time in case of suitable CPU and enables ' | + | TC4 activates CPU frequency scaling by default at startup time in case of suitable CPU found and enables ' |
In most cases it works fine and you do not need any additional action. | In most cases it works fine and you do not need any additional action. | ||
+ | |||
+ | However, as there are certain setups where either not all required drivers are automatically loaded and/or where the ' | ||
===== #VIEW CPU FREQUENCY INFORMATION ===== | ===== #VIEW CPU FREQUENCY INFORMATION ===== | ||
- | If you want to view actual CPU frequency settings, install | + | If you want to view actual CPU frequency settings, install |
cpufreq-info | cpufreq-info | ||
Line 27: | Line 29: | ||
userspace - allows userspace programs (or any process running as root) to set the frequency | userspace - allows userspace programs (or any process running as root) to set the frequency | ||
- | Above governors are modules, loaded automatically when needed, but you can modprobe them before using. TC default is ondemand. | + | Above governors are modules, loaded automatically when needed, but you can modprobe them before using. TC default is 'ondemand'. |
- | For most systems, the Ondemand | + | For most systems, the ' |
- | ===== #SELECT | + | ===== #CHANGING |
- | At this point everything is prepared but no active | + | If you want to use a different |
Use the ' | Use the ' | ||
- | cpufreq-set -g ondemand | + | cpufreq-set -g performance |
Please note, if you have a dual-core or multiple-core CPU, you must specify explicitely the CPU. There are CPU's where each core can run with different setting! Example for a dual-core CPU: | Please note, if you have a dual-core or multiple-core CPU, you must specify explicitely the CPU. There are CPU's where each core can run with different setting! Example for a dual-core CPU: | ||
Line 58: | Line 60: | ||
===== #USER SPACE PROGRAMS ===== | ===== #USER SPACE PROGRAMS ===== | ||
- | There are user space programs to manage not only cpu frequency but other components also. One of those, cpufreqd is part of the cpufreq.tcel/ | + | There are user space programs to manage not only cpu frequency but other components also. One of those, cpufreqd is available in the repository. |
+ | |||
+ | |||
+ | ===== # | ||
- | For the curious there are many good articles | + | The following relates to a Pentium M under TC3.8.4 (2.6.33.3 kernel) running |
+ | laptop, but may still be applicable if you run into a similiar problem.\\ | ||
+ | Installed cpufrequtils and selected ondemand govenor. The policy line from the cpufreq-info command read:\\ | ||
+ | < | ||
+ | indicated that CPU was locked at 800Mhz. Executing the command: | ||
+ | < | ||
+ | returned the value 800000 (frequency in Khz). Using the boot code: | ||
+ | < | ||
+ | fixed that. Now bios_limit contains 2267000 (2.267Ghz), the maximum speed for this CPU. Checking\\ | ||
+ | \proc\cpuinfo several times showed that the frequency was bouncing between 800Mhz and 2.27Ghz\\ | ||
+ | even though the machine was not doing anything. Changing the governor to conservative fixed that.\\ | ||
+ | For links to bug reports that helped solve this problem, see:\\ | ||
+ | http:// |