您现在的位置:首页 > 系统运维 > 硬件设备

华为2288Hv5服务器如何开启CPU Performance与Turbostat

问题: 我们在初始化的时候为了发挥服务器的最大性能我们需要对服务器电源选项进行设置,比如说开启服务器高性能模式,但是在配置中可能会出现一系列问题,比如服务器安装Linux(Centos7)操作系统,Bios中开启了CPU高性能与Turbostat但是在操作系统通过如下命令检查发现不生效,这里使用的服务器是华为的2288H v5服务器: [root@luojinshu_test100 ~]#sudo

问题:

我们在初始化的时候为了发挥服务器的最大性能我们需要对服务器电源选项进行设置,比如说开启服务器高性能模式,但是在配置中可能会出现一系列问题,比如服务器安装Linux(Centos7)操作系统,Bios中开启了CPU高性能与Turbostat但是在操作系统通过如下命令检查发现不生效,这里使用的服务器是华为的2288H v5服务器

[root@luojinshu_test100 ~]#sudo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: 没有那个文件或目录
[root@luojinshu_test100 ~]# 
[root@luojinshu_test100 ~]#sudo cat /sys/devices/system/cpu/intel_pstate/no_turbo
cat: /sys/devices/system/cpu/intel_pstate/no_turbo: 没有那个文件或目录
[root@luojinshu_test100 ~]# 
[root@luojinshu_test100 ~]# uname -srm
Linux 3.10.0-957.el7.x86_64 x86_64

服务器电源模式已经设置为Performance,但是还是不生效。

 

解决方案:

一、在操作系统中使用cpupower修改:

sudo cpupower frequency-set -g performance
#如果该命令执行后不生效或在重启后失效,需在bios中进行配置。

二、在BIOS中设置CPU Performance

1、将Power policy设置为Custom

Advanced -> Socket Configuration -> Advanced Power Mgnt. Configuration->Power policy设置为Custom

2、开启EIST(P-State)

Advanced -> Socket Configuration -> Advanced Power Mgnt. Configuration->CPU P-State Control->EIST设置为enabled

3、CPU节能 C-State设置为关闭

Advanced -> Socket Configuration -> Advanced Power Mgnt. Configuration->Autonomous Core C-State设置为Disabled

4、设置Package C-State为自动

Advanced -> Socket Configuration -> Advanced Power Mgnt. Configuration->Package C-State Control设置为Auto

5、设置Hardware P-State状态为Native Mode

Advanced -> Socket Configuration -> Advanced Power Mgnt. Configuration->Hardware PM State Control->Hardware P-State设置为Native Mode

6、配置完成后通过在操作系统中检查状态发现已经正常

[root@luojinshu_test100 ~]# sudo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance

CPU能效模式:

ondemand:系统默认的超频模式,按需调节,内核提供的功能,不是很强大,但有效实现了动态频率调节,平时以低速方式运行,当系统负载提高时候自动提高频率。以这种模式运行不会因为降频造成性能降低,同时也能节约电能和降低温度
conservative:保守模式,类似于ondemand,但调整相对较缓
performance:性能模式!只有最高频率,从来不考虑消耗的电量
powersave :省电模式,通常以最低频率运行
userspace:用户自定义模式,系统将变频策略的决策权交给了用户态应用程序,并提供了相应的接口供用户态应用程序调节CPU 运行频率使用

三、在BIOS中设置Turbostat

1、开启Turbo Mode

Advanced -> Socket Configuration -> Advanced Power Mgnt. Configuration->Turbo Mode设置为enabled

6、配置完成后通过在操作系统中检查状态发现已经生效

[root@luojinshu_test100 ~]# sudo cat /sys/devices/system/cpu/intel_pstate/no_turbo
0

版权所有
侵权必究

上一篇
惠普HPE如何查询硬件质保
下一篇
博通BCM57800 577XX/578XX 10G网卡 关闭网卡LLDP功能