[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
howtos:hardware:cpu_frequency_scaling [2023/12/11 09:36 (UTC)] – [Kernel Configuration] zeebrahowtos:hardware:cpu_frequency_scaling [2023/12/11 10:43 (UTC)] (current) – [Introduction] zeebra
Line 9: Line 9:
 \\ \\
 For older computers with "legacy" scaling implementations and with a new Kernel, these functions have been incorporated into acpi-cpufreq, and alongside AMD it should be your default choice. For very old and new AMD CPU's (zen2 onwards), other options exists and should be considered. For older computers with "legacy" scaling implementations and with a new Kernel, these functions have been incorporated into acpi-cpufreq, and alongside AMD it should be your default choice. For very old and new AMD CPU's (zen2 onwards), other options exists and should be considered.
 +\\
 +
 +**Available governors** and the **currently used driver** can be seen by using the cpufreq command
 +<code>cpufreq-info</code>
 \\ \\
 ===== Kernel Configuration ===== ===== Kernel Configuration =====
  
 Both Kernels (huge/generic) for Slackware 15 includes the necessary modules for all the CPU Frequency Scaling functions.\\ Both Kernels (huge/generic) for Slackware 15 includes the necessary modules for all the CPU Frequency Scaling functions.\\
-If you want to use a newer Kernel series or your own Kernel, the relevant options are found in the section "Power management and ACPI options" under "CPU Frequency scaling".\\+If you want to use a newer Kernel series or your own Kernel, the relevant options are found in the section **"Power management and ACPI options" under "CPU Frequency scaling"**.\\
  
 With AMD you should normally use the acpi-cpufreq driver, but exceptions apply. With Intel you will expose 3 different drivers: **intel_pstate**, **intel_cpufreq** (passive/acpi) and **acpi-cpufreq**.   With AMD you should normally use the acpi-cpufreq driver, but exceptions apply. With Intel you will expose 3 different drivers: **intel_pstate**, **intel_cpufreq** (passive/acpi) and **acpi-cpufreq**.  
-Generally speaking you could say that Intel P-state is performance biased in general and that acpi-cpufreq gives you the maximum control (including performance bias). There are several options you can pass to the Kernel at boot, but if you want to disable p-states and use the acpi-cpufreq driver you pass **intel_pstate=disable** to the Kernel at boot time.+Generally speaking you could say that Intel P-state is performance biased in general and that acpi-cpufreq gives you the maximum control (including performance bias). There are several options you can pass to the Kernel at boot, but if you want to disable p-states and use the acpi-cpufreq driver you pass **intel_pstate=disable** to the Kernel at boot time. These two options are the safe options, while other options could prevent a boot with certain CPU's. However, you might want to use another option depending on your cpu. \\ 
 +\\ 
 +You can pass these options at boot time to the Kernel command line with the bootloader, like Grub2, you add it after the Kernel line, the standard way of passing Kernel parameters at boot.
 \\ \\
  
Line 23: Line 29:
 ===== /etc/rc.d/rc.cpufreq and /etc/default/cpufreq ===== ===== /etc/rc.d/rc.cpufreq and /etc/default/cpufreq =====
  
-The main way to adjust frequency scaling in Slackware is to do so at boot time by making /etc/rc.d/rc.cpufreq executable (chmod +x rc.cpufreq) and selecting the governor to use by editing the file /etc/default/cpufreq. The necessary setup is done in rc.cpufreq and it reads /etc/default/cpufreq to select the governor. These things do depend on what options are available to it, and those options depend on what choice you make at boot time and which driver is in useIf you use the acpi-cpufreq driveryou can select any of the available scaling governors, if intel_pstate is in use, it will ignore the choice if it cannot be parsed.+The main way to adjust frequency scaling in Slackware is to do so at boot time by making /etc/rc.d/rc.cpufreq executable.  
 +<code>chmod +x /etc/rc.d/rc.cpufreq</code>  
 +And by selecting the governor to use by editing the file /etc/default/cpufreq. 
 +<code>nano /etc/default/cpufreq</code> 
 +<code># To select a particular CPU governor option for /etc/rc.d/rc.cpufreq, 
 +# uncomment the line below and edit it to select your choice
 +#SCALING_GOVERNOR=ondemand 
 +</code>
  
-**Available governors** and the **currently used driver** can be seen by using the cpufreq command +<note important>The necessary setup is done in /etc/rc.d/rc.cpufreq and it reads /etc/default/cpufreq to select the governor. These things do depend on what options are available to it, and those options depend on what choice you make at boot time and which driver is in use. If you use the acpi-cpufreq driver, you can select any of the available scaling governors, if intel_pstate is in use, it will ignore the choice if it cannot be parsed.</note>
-<code>cpufreq-info</code>+
  
 After the initial setup of CPU frequency scaling at boot, scaling can also be controlled manually in a variety of ways, as described below.\\ After the initial setup of CPU frequency scaling at boot, scaling can also be controlled manually in a variety of ways, as described below.\\
Line 89: Line 101:
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
 <!-- Some updates done, more will follow. Specifically a section about /etc/rc.d/ is high priority  --- //[[wiki:user:zeebra|zeebra]] 2023/12/10 13:34 (UTC)// --> <!-- Some updates done, more will follow. Specifically a section about /etc/rc.d/ is high priority  --- //[[wiki:user:zeebra|zeebra]] 2023/12/10 13:34 (UTC)// -->
-{{tag>howtos CPU frequency Laptop, needs_attention}}+{{tag>howtos CPU frequency Laptop cpu_frequency_scaling}}
 howtos:hardware:cpu_frequency_scaling ()