User Tools

Site Tools


cpu_frequency_scaling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cpu_frequency_scaling [2023/07/10 03:49] – created - external edit 127.0.0.1cpu_frequency_scaling [2025/01/27 02:23] (current) wigums
Line 1: Line 1:
-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.+**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  =+__Find available governors__
  
- cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors +<code>cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors</code> 
  
  
-= Setting governor =+__Setting governor__
  
- edit ''/etc/default/cpufreq''+<code>nano /etc/default/cpufreq</code>
  
-= Applying the governor =+__Applying the governor__
  
- ''/etc/rc.d/rc.cpufreq'' should already be executable +make rc.cpufreq executable
- make sure its running  +
- ''/etc.rc.d/rc.cpufreq restart''+
  
 +<code>chmod +x /etc/rc.d/rc.cpufreq</code>
 +make sure its running 
  
-= Governor types = +<code>/etc/rc.d/rc.cpufreq restart</code>
  
-'''Performance''' 
  
- The CPUfreq governor "performance" sets the CPU statically to the +__Governor types__ 
- highest frequency within the borders of scaling_min_freq and + 
- scaling_max_freq.+**Performance** 
 + 
 +The CPUfreq governor "performance" sets the CPU statically to the 
 +highest frequency within the borders of scaling_min_freq and 
 +scaling_max_freq.
  
  
-'''Powersave'''+**Powersave**
  
  The CPUfreq governor "powersave" sets the CPU statically to the  The CPUfreq governor "powersave" sets the CPU statically to the
Line 35: Line 38:
  
  
-'''Userspace'''+**Userspace**
  
  The CPUfreq governor "userspace" allows the user, or any userspace  The CPUfreq governor "userspace" allows the user, or any userspace
Line 43: Line 46:
  
  
-'''Ondemand'''+**Ondemand**
  
  The CPUfreq governor "ondemand" sets the CPU frequency depending on the  The CPUfreq governor "ondemand" sets the CPU frequency depending on the
Line 53: Line 56:
  
  
-'''Conservative'''+**Conservative**
  
  The CPUfreq governor "conservative", much like the "ondemand"  The CPUfreq governor "conservative", much like the "ondemand"
cpu_frequency_scaling.1688960990.txt.gz · Last modified: 2024/07/23 16:19 (external edit)