Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:guides:cpu-frequency [2011/02/08 18:57] – created kultex | en:guides:cpu-frequency [2011/02/22 22:49] (current) – linea | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== CPU Frequency Scaling ====== | + | ======= CPU Frequency Scaling |
| - | To reduce power consumption is not only essential for portable computers, it is also essential to use it on desktop machines to reduce unnecessary CO2 emisson. You can save power by turning off not needed hardware components like WiFi, Bluetooth, etc., turning off or reduce monitor backlight, spinning down HDDs and controling CPU frequency. | + | ==== Introduction ==== |
| - | CPU frequency scaling | + | To reduce power consumption |
| - | install linux-cpufreq, | + | CPU frequency scaling is built into the 2.6 kernel and available; but because Slitaz is very small and light, you have to install |
| + | |||
| + | ==== Installation ==== | ||
| + | |||
| + | Install | ||
| < | < | ||
| Line 15: | Line 19: | ||
| </ | </ | ||
| - | !!!not | + | ==== Cpu driver ==== |
| + | |||
| + | You have to load the correct CPU kernel driver for your CPU - if you don't know, which CPU is in your PC you can get it from: | ||
| + | |||
| + | < | ||
| + | |||
| + | Depending on the CPU, load one of the following modules - if you choose the wrong driver, you will get an error message, the module is not loaded and nothing goes wrong. | ||
| + | |||
| + | Generic ACPI P-States based driver: | ||
| + | < | ||
| + | AMD mobile K6-2/3+ PowerNow!: | ||
| + | < | ||
| + | AMD mobile Athlon PowerNow!: | ||
| + | < | ||
| + | AMD Cool& | ||
| + | < | ||
| + | Intel SpeedStep using the SMI BIOS interface: | ||
| + | < | ||
| + | Intel SpeedStep on ICH-based chipsets: | ||
| + | < | ||
| + | Intel Enhanced SpeedStep (deprecated - use acpi-cpufreq): | ||
| + | < | ||
| + | Intel Pentium4/ | ||
| + | < | ||
| + | NatSemi Geode GX / Cyrix MediaGXm: | ||
| + | < | ||
| + | Transmeta Crusoe / Efficeon LongRun: | ||
| + | < | ||
| + | VIA Cyrix Longhaul: | ||
| + | < | ||
| + | nForce2 FSB changing cpufreq driver: | ||
| + | < | ||
| + | Enhanced PowerSaver driver for VIA C7 CPUs: | ||
| + | < | ||
| + | |||
| + | ==== Scaling governors ==== | ||
| + | |||
| + | Governors can be thought of as pre-configured power schemes for the CPU. | ||
| + | |||
| + | Available governors: | ||
| + | |||
| + | **cpufreq_performance (default in SliTaz)** \\ | ||
| + | The performance governor is built into the kernel and runs the CPU(s) at maximum clock speed | ||
| + | |||
| + | **cpufreq_ondemand (also built into the kernel)** \\ | ||
| + | Dynamically increases/ | ||
| + | |||
| + | **cpufreq_conservative** \\ | ||
| + | Similar to ondemand, but more conservative (clock speed changes are more graceful) | ||
| + | |||
| + | **cpufreq_powersave** \\ | ||
| + | Runs the CPU at minimum speed | ||
| + | |||
| + | **cpufreq_userspace** \\ | ||
| + | Manually configured clock speeds by user | ||
| + | |||
| + | The built in governors must not be loaded - the others must be loaded with modprobe - you may load as many governors as desired (only one will be active at any given time). | ||
| + | |||
| + | Which poses the question, which governor saves most energy? The Powersave governor will only save you power if you're playing 3D games (it does not save power because application process completion times are prolonged at the lower processor frequency and the system does not enter a deep C-state. The greatest power savings occur at idle in deeper C-states) and the performance governor will basically never give you extra performance. Don't use them - therefore I am not happy that the performance governor is used by default in SliTaz. So you might choose between ondemand and conservative, | ||
| + | |||
| + | The userspace governor is necessary for third party applications - like cpupowerd http:// | ||
| + | |||
| + | ==== Select the governor ==== | ||
| + | |||
| + | At this point everything is prepared but no active governor selected - so no power saving yet. | ||
| + | |||
| + | Use the ' | ||
| + | |||
| + | < | ||
| + | |||
| + | Please note, if you have a dual-core or multiple-core CPU, you must explicitly specify the CPU. There are CPUs where each core can run with different settings! Example for a dual-core CPU: | ||
| + | |||
| + | < | ||