Here are the simple steps to modify the CPU performance.
The CPUfreq governor feature enables a static frequency to the CPU and the frequency value must be between min_freq and max_freq.
When CPU frequency governor is at “powersave” mode, CPU runs at the minimum frequency and at “performance” mode CPU run at the maximum frequency.
The Primary step is to load the appropriate CPUfreq driver.
We can check the commands to execute various functions.
1. The below command is used to view the CPUfreq drivers.
ls /lib/modules/[kernel version]/kernel/arch/[architecture]/kernel/cpu/cpufreq/
$ ls -1 /lib/modules/`uname -r`/kernel/arch/x86/kernel/cpu/cpufreq/
2. Use modprobe command to add the exact CPUfreq driver.
modprobe [CPUfreq driver]
$ modprobe acpi-cpufreq
3. Next step is to install the cpupowerutils
$ yum install cpupowerutils
4. To list the governors available for use for a specific CPU you can use the below command.
$ cpupower frequency-info –governors
The currently loaded governors are: ondemand, userspace, and performance.
5. To get the list of all governors that are available below command can be executed.
$ ls -1 /lib/modules/`uname -r`/kernel/drivers/cpufreq/
6. The below comand can be executed to load the missing governors.
$ modprobe cpufreq_powersave
7. To confirm the modules that are using, use the below command.
$ lsmod |grep cpuf
8. To check the governors which are currently loading use the below command.
$ cpupower frequency-info –governors
9. To view the current policy execute the below command.
$ cpupower frequency-info
In the output obtained its clear that the current policy is “ondemand”.
10. Use this command to tune the policy and speed.
$ cpupower frequency-set –governor performance
11. The new governor can be confirmed using the below command.
$ cpupower frequency-info
” margin_top=”50px” margin_bottom=”” animation_type=”slide” animation_direction=”left” animation_speed=”0.3″ class=”” id=””]
Leave A Comment
You must be logged in to post a comment.