#查看当前cpu运行频率:
cat /proc/cpuinfo | grep -i "cpu mhz"
#开启性能模式:
cpupower -c all frequency-set -g performance
如何开机自动开启高性能模式呢?
首先确定计算机处于最大性能模式(max performance):主要是让CPU处于全速工作模式
方法一:在bios(cpu 选项,或者电源管理选项)直接配置为max performance,重启即可;
方法二:
CENTOS
yum install cpupowerutils
DEBIAN
apt install cpufrequtils
cpupower -c all frequency-set -g performance
cpupower frequency-set -g performance
方法三:service cpuspeed stop
重启系统!!!
查看当前governor
1、cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave或者performance
编辑 /etc/default/cpufrequtils 如不存在则创建,添加条目
GOVERNOR=”performance”
2、cat /proc/cpuinfo | grep -i “cpu mhz”
显示每个CPU的当前运行频率
3、cpupower frequency-info
systemctl restart cpufrequtils