Difference between revisions of "CPU Frequency Governor Linux"

From Hack Sphere Labs Wiki
Jump to: navigation, search
(Created page with "Debian and Archlinux use: cpufrequtils =Archlinux= I had to manually configure: Options: cpufreq_ondemand (default and recommended) Dynamically switches between the CPU(s)...")
 
(Archlinux)
Line 26: Line 26:
 
I have a new kernel as most archlinux users do and did not need to have the system autoload the modules because they already are.
 
I have a new kernel as most archlinux users do and did not need to have the system autoload the modules because they already are.
  
 +
I use this laptop like a desktop but just in case I created some aliases to switch back and forth:
 +
 +
alias cpu.performance='sudo cpufreq-set -r -g performance'
 +
alias cpu.ondemand='sudo cpufreq-set -r -g ondemand'
 +
 +
{{File| /etc/conf.d/cpufreq | #configuration for cpufreq control
 +
 +
# valid governors:
 +
#  ondemand, performance, powersave,
 +
#  conservative, userspace
 +
governor="performance"
 +
 +
# limit frequency range (optional)
 +
# valid suffixes: Hz, kHz (default), MHz, GHz, THz
 +
#min_freq="2.25GHz"
 +
#max_freq="3GHz"
 +
 +
# use freq to set up the exact cpu frequency using it with userspace governor
 +
#freq=
 +
}}
 
==Notes==
 
==Notes==
 
*https://wiki.archlinux.org/index.php/CPU_Frequency_Scaling
 
*https://wiki.archlinux.org/index.php/CPU_Frequency_Scaling

Revision as of 13:31, 22 July 2012

Debian and Archlinux use: cpufrequtils

Archlinux

I had to manually configure:

Options:

cpufreq_ondemand (default and recommended)

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

Add to rc.conf:

MODULES=(... cpufreq_powersave cpufreq_userspace ...)

I have a new kernel as most archlinux users do and did not need to have the system autoload the modules because they already are.

I use this laptop like a desktop but just in case I created some aliases to switch back and forth:

alias cpu.performance='sudo cpufreq-set -r -g performance'
alias cpu.ondemand='sudo cpufreq-set -r -g ondemand'
 /etc/conf.d/cpufreq 
Template error: are you trying to use the = sign? Visit Help:Template#Escape template-breaking characters for workarounds.

Notes