相关库安装:
sudo apt install linux-tools-common
sudo apt install linux-tools-generic
sudo apt install linux-cloud-tools-generic
实时查看cpu频率
watch -n 1 sudo cpupower monitor
查看当前cpu信息
sudo cpupower -c all frequency-info
设置cpu为
设置所有CPU为性能模式
sudo cpupower -c all frequency-set -g performance
设置cpu为节能模式
sudo cpupower -c all frequency-set -g powersave