cpupower 调整CPU频率

分类:技术 68浏览

现在的多核心的服务器默认都是用低压低功耗运行,在负载上来之前不会升频,导致操作略显卡顿。

可以在BIOS内调整performance,或在Linux系统内按一下方式修改。

一、查看目前CPU运行频率

cat /proc/cpuinfo | grep -i "cpu mhz"

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

如果主频较低,可能在 powersave 模式。

二、调整到性能模式

cpupower -c all frequency-set -g performance

三、再执行第一步查看状态