centos服务器解锁频率限制

新到了一批机器,检查发现CPU频率一直比较低,应该是锁频了,这里记录下解锁的过程


#安装工具包
yum install cpupowerutils -y
#查看当前模式
cpupower frequency-info
#检查当前频率
cat /proc/cpuinfo |grep MHz
#修改模式
cpupower frequency-set -g performance
#检查修改后频率
cat /proc/cpuinfo |grep MHz

cpupower frequency-info可以看到当前CPU的频率

[root@node18 ~]# cpupower frequency-info
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 1000 MHz - 3.10 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 1000 MHz and 3.10 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: 1.01 GHz (asserted by call to hardware)
  boost state support:
    Supported: yes
    Active: yes

current policy:内可以看到目前的运行模式

模式说明

performance       运行于最大频率
powersave         运行于最小频率
userspace         运行于用户指定的频率
ondemand          按需快速动态调整CPU频率, 一有cpu计算量的任务,就会立即达到最大频率运行,空闲时间增加就降低频率
conservative      按需快速动态调整CPU频率, 比 ondemand 的调整更保守
schedutil         基于调度程序调整 CPU 频率

参考:
https://blog.csdn.net/wangy_abcsdf2/article/details/106611935

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值