查看当前cpu运行频率:
cat /proc/cpuinfo | grep -i “cpu mhz”
开始设置:
cpupower -c all frequency-set -g performance
或者
cpupower frequency-set -g performance
再次查看当前cpu运行频率,既最大频率运行了。
cat /proc/cpuinfo | grep -i “cpu mhz”
来自 https://blog.csdn.net/sh13661847134/article/details/107855285
在不同的系统上,并不是所有的策略都是可用了,可以通过/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors查看支持的策略
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
查看当前生效的策略
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
查看当前CPU频率
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
900022
cpupower
cpupower 是一组为辅助 CPU 调频而设计的用户空间工具。
1、查看当前所有CPU的信息
cpupower -c all frequency-info
2、设置所有CPU为性能模式
cpupower -c all frequency-set -g performance
3、设置所有CPU为节能模式
cpupower -c all frequency-set -g powersave




