written in front
My computer environment is Ubuntu20.04. (This method should also be applicable to other versions of Ubuntu)
1. Installation
sudo apt-get install linux-tools-common
If an error occurs in the running command cpupower monitor
, install according to the error prompt:
Install according to the error prompt:
sudo apt install linux-tools-5.15.0-67-generic
2. View CPU real-time frequency
Refresh every 1 s
watch -n 1 sudo cpupower monitor
3. Display the frequency information of each CPU:
Display frequency information for each CPU, including frequency range, current frequency, etc.:
sudo cpupower -c all frequency-info
reference link
[1] wx62830f4b679a4. CPU real-time frequency viewing tool cpupower under ubuntu 18.04 system [EB/OL]. https://blog.51cto.com/u_15642578/5301164, 2022-05-17/2023-03-16.