Difference between revisions of "User:Stefanwilkens"

From ArchWiki
Jump to: navigation, search
(Blanked the page)
Line 1: Line 1:
 +
Currently: rewrite of [[CPU_Frequency_Scaling#CPU_frequency_driver]]
  
 +
----
 +
 +
CPU frequency scaling enables the operating system to scale the CPU speed up or down in order to save power. CPU frequencies can be scaled automatically depending on the system load, in response to ACPI events, or manually by userspace programs.
 +
 +
{{Tip|Since kernel 3.4 the necessary CPU frequency driver modules are loaded automatically and the recommended ondemand governor is enabled by default. User-space applications like cpupower, acpid, laptop-mode-tools, or GUI tools provided for your desktop environment, may still be used for advanced configuration.}}
 +
 +
== Configuration ==
 +
Configuration of CPU frequency scaling is done through three mechanics:
 +
 +
* '''The CPU frequency driver'''
 +
 +
* '''The scaling governor'''
 +
 +
* '''Fine-tuning of the governor through user-space tools'''
 +
 +
Since kernel 3.4 the necessary CPU frequency driver modules are loaded automatically and the recommended ondemand governor is enabled by default. This leaves the user with a functional, on-demand, CPU frequency scaling setup requiring no intervention from user-space.
 +
 +
User-space applications like cpupower, acpid, laptop-mode-tools, or GUI tools provided for your desktop environment, may still be used for advanced configuration.
 +
 +
== The CPU frequency driver ==
 +
In order for frequency scaling to work properly, the operating system must first know the limits of the CPU(s). To accomplish this, a kernel module must be loaded that can read and manage the specifications of the CPU(s). Note that these modules may need related features enabled in BIOS which may be labeled as: Speedstep, Cool and Quiet, PowerNow!, or ACPI.
 +
 +
The appropriate driver module will be determined and loaded during boot.
 +
 +
'''Available drivers'''
 +
 +
{{ic|acpi_cpufreq}}
 +
:CPUFreq driver which utilizes the ACPI Processor Performance States. This driver also supports Intel Enhanced SpeedStep (previously supported by the deprecated speedstep-centrino module).
 +
{{ic|speedstep-ich}}
 +
:Bla bla
 +
{{ic|speedstep-smi}}
 +
:Bla bla
 +
{{ic|powernow-k8}}
 +
:Bla bla
 +
{{ic|powernow-k7}}
 +
:Bla bla
 +
{{ic|cpufreq-nforce2}}
 +
:Bla bla
 +
{{ic|pcc-cpufreq}}
 +
:Bla bla
 +
{{ic|p4_clockmod}}
 +
 +
== Scaling governors ==
 +
 +
Governors can be thought of as pre-configured power schemes for the CPU. Some of the governors must be loaded as kernel modules in order to be seen by user space programs. One may load as many governors as desired (only one will be active on a CPU at any given time). The {{ic|cpufreq_ondemand}} governor is loaded by default.
 +
 +
'''Available governors:'''
 +
 +
;{{ic|cpufreq_ondemand}}: Dynamically switches between the CPU(s) available clock speeds based on system load
 +
;{{ic|cpufreq_performance}}: The performance governor runs the CPU(s) at maximum clock speed
 +
;{{ic|cpufreq_conservative}}: Similar to {{ic|ondemand}}, but the CPU(s) clock speed switches gradually through all its available frequencies based on system load
 +
;{{ic|cpufreq_powersave}}: Runs the CPU(s) at minimum speed
 +
;{{ic|cpufreq_userspace}}: Manually configured clock speeds by user
 +
 +
=== fine-tuning governors ===
 +
 +
Improving on-demand performance
 +
 +
Changing the on-demand governor's threshold
 +
 +
On-demand governor sampling_down_factor
 +
 +
Tuning conservative governor
 +
 +
etc.
 +
 +
== User-space tools ==
 +
=== cpupower ===
 +
=== laptop-mode ===
 +
 +
== Troubleshooting ==

Revision as of 12:03, 15 September 2012

Currently: rewrite of CPU_Frequency_Scaling#CPU_frequency_driver


CPU frequency scaling enables the operating system to scale the CPU speed up or down in order to save power. CPU frequencies can be scaled automatically depending on the system load, in response to ACPI events, or manually by userspace programs.

Tip: Since kernel 3.4 the necessary CPU frequency driver modules are loaded automatically and the recommended ondemand governor is enabled by default. User-space applications like cpupower, acpid, laptop-mode-tools, or GUI tools provided for your desktop environment, may still be used for advanced configuration.

Configuration

Configuration of CPU frequency scaling is done through three mechanics:

  • The CPU frequency driver
  • The scaling governor
  • Fine-tuning of the governor through user-space tools

Since kernel 3.4 the necessary CPU frequency driver modules are loaded automatically and the recommended ondemand governor is enabled by default. This leaves the user with a functional, on-demand, CPU frequency scaling setup requiring no intervention from user-space.

User-space applications like cpupower, acpid, laptop-mode-tools, or GUI tools provided for your desktop environment, may still be used for advanced configuration.

The CPU frequency driver

In order for frequency scaling to work properly, the operating system must first know the limits of the CPU(s). To accomplish this, a kernel module must be loaded that can read and manage the specifications of the CPU(s). Note that these modules may need related features enabled in BIOS which may be labeled as: Speedstep, Cool and Quiet, PowerNow!, or ACPI.

The appropriate driver module will be determined and loaded during boot.

Available drivers

acpi_cpufreq

CPUFreq driver which utilizes the ACPI Processor Performance States. This driver also supports Intel Enhanced SpeedStep (previously supported by the deprecated speedstep-centrino module).

speedstep-ich

Bla bla

speedstep-smi

Bla bla

powernow-k8

Bla bla

powernow-k7

Bla bla

cpufreq-nforce2

Bla bla

pcc-cpufreq

Bla bla

p4_clockmod

Scaling governors

Governors can be thought of as pre-configured power schemes for the CPU. Some of the governors must be loaded as kernel modules in order to be seen by user space programs. One may load as many governors as desired (only one will be active on a CPU at any given time). The cpufreq_ondemand governor is loaded by default.

Available governors:

cpufreq_ondemand
Dynamically switches between the CPU(s) available clock speeds based on system load
cpufreq_performance
The performance governor runs the CPU(s) at maximum clock speed
cpufreq_conservative
Similar to ondemand, but the CPU(s) clock speed switches gradually through all its available frequencies based on system load
cpufreq_powersave
Runs the CPU(s) at minimum speed
cpufreq_userspace
Manually configured clock speeds by user

fine-tuning governors

Improving on-demand performance

Changing the on-demand governor's threshold

On-demand governor sampling_down_factor

Tuning conservative governor

etc.

User-space tools

cpupower

laptop-mode

Troubleshooting