To change the CPU frequency on all logical cores of an AMD Phenom II or AMD Athlon II processor in Linux, you can use the cpufrequtils
package. Here are the steps to do so:
- Install the
cpufrequtils
package by running the following command in the terminal:
sudo apt-get install cpufrequtils
This will install the cpufrequtils
package, which provides utilities to control the CPU frequency.
- Load the necessary kernel modules by running the following command in the terminal:
sudo modprobe cpufreq_ondemand
This will load the necessary kernel modules for changing the CPU frequency.
- Set the CPU frequency scaling governor to “ondemand” by running the following command in the terminal:
sudo cpufreq-set -g ondemand
This will set the CPU frequency scaling governor to “ondemand”, which will automatically adjust the CPU frequency based on the system load.
- Verify that the CPU frequency scaling governor is set to “ondemand” by running the following command in the terminal:
sudo cpufreq-info
This will display information about the current CPU frequency scaling governor and the available frequency ranges.
- Monitor the CPU frequency on all logical cores by running the following command in the terminal:
watch -n 1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""
This will display the current CPU frequency on all logical cores, and update the display every second.
Note: The above steps are for changing the CPU frequency on all logical cores of an AMD Phenom II or AMD Athlon II processor. The exact steps may vary depending on your CPU model and Linux distribution.