测试环境:
EGS 服务器;
CPU 频率调节驱动
BIOS 设置 Hardware P-States 为 Native Mode,
BIOS 关闭 EIST,intel_pstate,但是 pstate 只能有 10 个,所以 CPU 频率只能 800MHz ~ 1700 MHz,turbo mode 自动关闭,且不可被开启。
[root@localhost ~]# paste <(ls $intel_pstate) <(cat $intel_pstate/*) | column -s $'\t' -t
hwp_dynamic_boost 0
max_perf_pct 100
min_perf_pct 100
no_turbo 1
num_pstates 10
status active
turbo_pct 0
[root@localhost ~]# 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: 800 MHz - 1.70 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 1.70 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 1.65 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
BIOS 设置 Hardware P-States 为Native Mode with No Legacy Support。
BIOS 开启/关闭 EIST,intel_pstate,但是 pstate 只能有 10 个,所以 CPU 频率只能 800MHz ~ 1700 MHz,turbo mode 自动关闭,且不可被开启。
BIOS 设置 Hardware P-States 为 Disable。
BIOS 开启或关闭 EIST,intel_cpufreq。pstate 状态个数识别正常。但是工作频率一直在标称频率。turbo mode 自动关闭,且不可被开启。
[root@localhost ~]# paste <(ls $intel_pstate) <(cat $intel_pstate/*) | column -s $'\t' -t
max_perf_pct 100
min_perf_pct 100
no_turbo 1
num_pstates 31
status passive
turbo_pct 59
[root@localhost ~]# cpupower frequency-info
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us
hardware limits: 800 MHz - 2.00 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 2.00 GHz and 2.00 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 2.00 GHz (asserted by call to kernel)
boost state support:
Supported: no
Active: no
BIOS 设置 Hardware P-States 为 Out of Band Mode。
OS 内,没有 /sys/devices/system/cpu/intel_pstate 文件夹,没有 /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver 文件。
CPU frequency scaling
CPU Performance Scaling
谁动了我的 CPU 频率 —— CPU 性能之迷 Part 2