[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:hardware:cpu_frequency_scaling [2013/12/16 22:32 (UTC)] – [Example] metaschimahowtos:hardware:cpu_frequency_scaling [2013/12/16 22:36 (UTC)] – [Further reading] metaschima
Line 29: Line 29:
 ===== Checking the CPU frequency settings ===== ===== Checking the CPU frequency settings =====
  
-Slackware comes with the cpufrequtils package which helps to configure frequency scaling in an appropriate manner. You can check the settings on your system with the command +Slackware comes with the ''cpufrequtils'' package which helps to configure frequency scaling in an appropriate manner. You can check the settings on your system with the command 
 <code bash>cpufreq-info</code> <code bash>cpufreq-info</code>
  
-Or using sysfs+Or if you don't have the package installed
-<code bash>cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor</code>+<code bash>cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor 
 +cat /proc/cpuinfo</code>
 where "cpu*" is the CPU you want the info on, for example cpu0. where "cpu*" is the CPU you want the info on, for example cpu0.
  
  
-===== The configuration ===== 
-The cpufrequtils package provides two commands. With ''cpufreq-info'' you can find out which governor is configured and also some other information, for example, the available frequencies for your processor. 
-The ''cpufreq-set'' command can be used to set the appropriate governor. 
  
 ===== Setting the CPU frequency settings ===== ===== Setting the CPU frequency settings =====
Line 64: Line 62:
 as long as the interface exists. as long as the interface exists.
 ===== Further reading ===== ===== Further reading =====
-I recommend reading the manpages for cpufreq-info and cpufreq-set. Also you can read the relevant documentation in the kernel sources.+The manpages for ''cpufreq-info'' and ''cpufreq-set'' are useful 
 + 
 +The kernel ''Documentation/cpu-freq'' directory contains detailed explanations of CPU frequency drivers, governors, and other settings.
  
 A decent explanation of P states and how they are handled in the kernel: https://plus.google.com/+ArjanvandeVen/posts/dLn9T4ehywL A decent explanation of P states and how they are handled in the kernel: https://plus.google.com/+ArjanvandeVen/posts/dLn9T4ehywL
 howtos:hardware:cpu_frequency_scaling ()