当机器成像时:
RHEL6.x
- CPU 速度报告所有 CPU 的完整 3.3Ghz 速度
- cpupowerutils 未安装
RHEL7.x
- CPU 速度各不相同(如下例所示)
- cpupowerutils已安装
我已经检查了以下内容:
/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
在 RHEL7.x 中。它表示performance
适用于所有 CPU。- 要查看 kondemand 是否正在运行,请使用
pgrep -lf kondemand
.它不是 - 要查看 cpuspeed 服务是否正在运行,请使用
service cpuspeed status
.未找到
RHEL 7.x CPU 频率示例:
grep -E '^cpu MHz' /proc/cpuinfo
cpu MHz : 3317.273
cpu MHz : 2028.210
cpu MHz : 3464.226
cpu MHz : 3237.480
cpu MHz : 3455.332
cpu MHz : 1913.484
cpu MHz : 3425.167
cpu MHz : 2592.304
cpu MHz : 2746.218
cpu MHz : 2739.128
cpu MHz : 3202.417
cpu MHz : 3368.191
cpu MHz : 2815.441
cpu MHz : 3165.292
cpu MHz : 3327.457
cpu MHz : 2539.066
cpu功率输出:
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: 0.97 ms.
hardware limits: 1.20 GHz - 3.50 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 1.20 GHz and 3.50 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.59 GHz (asserted by call to hardware).
boost state support:
Supported: yes
Active: yes
3400 MHz max turbo 4 active cores
3400 MHz max turbo 3 active cores
3500 MHz max turbo 2 active cores
3500 MHz max turbo 1 active cores
答案1
RHEL7 引入了一个名为“tuned”的新守护进程,它涉及一系列设置,包括 CPU 扩展。检查一下它是否正在运行并且有什么问题
答案2
我喜欢做
sudo watch -n 1 cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
在终端窗口中查看 cpu 速度。
使用tuned
您的更改实时更改电源配置文件
tuned-adm active
tuned-adm list
# to set the current profile do the following
tuned-adm profile <choice from the list>
从该 watch 命令观察核心频率的实时变化。
还有,yum install tuned*
还有yum install tuna