3.2.2. CPUfreq Setup
Before selecting and configuring a
CPUfreq
governor, you need to add the appropriate CPUfreq
driver first.
Procedure 3.1. How to Add a CPUfreq Driver
- Use the following command to view which
CPUfreq
drivers are available for your system:ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/
ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use
modprobe
to add the appropriateCPUfreq
driver.modprobe [CPUfreq driver]
modprobe [CPUfreq driver]modprobe [CPUfreq driver]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow When using the above command, be sure to remove the.ko
filename suffix.Important
When choosing an appropriate CPUfreq driver, always chooseacpi-cpufreq
overp4-clockmod
. While using thep4-clockmod
driver reduces the clock frequency of a CPU, it does not reduce the voltage.acpi-cpufreq
, on the other hand, reduces voltage along with CPU clock frequency, allowing less power consumption and heat output for each unit reduction in performance.
You can also view which governors are available for use for a specific CPU using:
cpupower frequency-info --governors
cpupower frequency-info --governors
Some CPUfreq governors may not be available for you to use. In this case, use
modprobe
to add the necessary kernel modules that enable the specific CPUfreq governor you wish to use. These kernel modules are available in /lib/modules/[kernel version]/kernel/drivers/cpufreq/
.
Procedure 3.2. Enabling a CPUfreq Governor
- If a specific governor is not listed as available for your CPU, use
modprobe
to enable the governor you wish to use:modprobe [governor]
modprobe [governor]modprobe [governor]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 3.1. Enabling a Governor
If theondemand
governor is not available for your CPU, use the following command:modprobe cpufreq_ondemand
modprobe cpufreq_ondemand
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Once a governor is listed as available for your CPU, you can enable it using:
cpupower frequency-set --governor [governor]
cpupower frequency-set --governor [governor]cpupower frequency-set --governor [governor]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow