RHEL8系统修改CPU频率限制

54次阅读

共计 664 个字符,预计需要花费 2 分钟才能阅读完成。

RHEL 默认安装后会将 CPU 设置为 performance 性能模式导致 CPU 温度过高

解决方法:

1 查看当前 CPU 模式

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
cpupower frequency-info

2 修改配置文件

cat /etc/sysconfig/cpupower

#See 'cpupower help' and cpupower(1) for more info
#CPUPOWER_START_OPTS="frequency-set -g performance"
CPUPOWER_STOP_OPTS="frequency-set -g ondemand"
#CPUPOWER_START_OPTS="frequency-set -g powersave"

3 手动修改当前模式

sudo cpupower frequency-set -g powersave

查看是否设置成功:

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

1900000

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

4800000

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

400000

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

1309812

正文完
 0