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 ui

#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

1900000code

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

4800000orm

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

400000form

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

1309812performance

相關文章
相關標籤/搜索