RHEL8系统修改CPU频率限制

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

你可能感兴趣的:(linux,rhel7,cpu)