CPU Frequency Scaling

From SlackWiki
Revision as of 22:10, 28 October 2018 by Wigums (talk | contribs)
Jump to: navigation, search

The CPU frequency scaling feature present in modern computers allows lowering and increasing the processor speed dynamically in runtime so as to save energy while having the possibility of increasing the performance and power consumption if needed. Activating CPU frequency scaling under Slackware is very easy, and requires loading a minimum of two kernel modules and running a simple command. On the one hand, you need to load a specific CPU driver that will activate the frequency scaling feature in your platform. Second, you need to choose a CPU frequency scaling governor, a module that will decide how and when to change the internal processor speed. There are governors to always run at full speed, governors to always run at low speed, governors to increase and decrease the speed based on the CPU load, etc.

Find available governors

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 

Setting a governor

edit /etc/default/cpufreq

Applying the governor

/etc/rc.d/rc.cpufreq should already be executable
make sure its running 
/etc.rc.d/rc.cpufreq restart