Last updated
Was this helpful?
Last updated
Was this helpful?
CPU governor是调节处理器Turbo性能的策略,通过以下命令可以查看所有处理器的governor:
详细的Intel Turbo Boost技术参考
手工设置powersave
作为目标CPU governor:
RHEL/CentOS 7的systemd
提供了cpupower.service
配置 - /usr/lib/systemd/system/cpupower.service
内容如下:
这个systemd
启动服务脚本只需要创建一个软链接就可以使用:
上述命令软件了 /etc/systemd/system/multi-user.target.wants/cpupower.service
到 /usr/lib/systemd/system/cpupower.service
的软链接。
然后可以启动服务
启动服务之后,可以通过systemd检查状态
输出显示
cpupower
默认的CPU governor配置是performance
,这个设置可以从/etc/sysconfig/cpupower
环境配置文件得到:
即默认配置下,cpupower.service
启动将设置governor
为performance
,停止时则设置ondemand
。
详细的调整 CPU governor 以及设置 Intel p-state 方法,请参考