CentOS 7 查看 CPU 节能模式 - 详细指南
要查看当前 CPU 是否处于节能模式,可以使用以下命令:
- 使用以下命令查看当前 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: Cannot determine or is not supported.
hardware limits: 800 MHz - 3.50 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 3.50 GHz.
The governor 'powersave' may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 1.20 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
注意观察 'current policy' 和 'current CPU frequency' 的输出。
- 使用以下命令查看 CPU 的性能配置和功耗状态:
cpupower idle-info
如果节能模式已启用,你将看到类似以下输出:
analyzing CPU 0:
no or unknown cpuidle driver is active on this CPU
CPUidle driver: acpi_idle
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 - 3.50 GHz
available idle states: C1 C1E
current idle states: C1 C1E
boost state support:
Supported: yes
Active: yes
注意观察 'current idle states' 的输出。
如果上述命令没有输出或者没有显示节能模式的相关信息,那么可能你的 CPU 不支持节能模式或相关驱动程序未正确加载。
原文地址: https://www.cveoy.top/t/topic/plwE 著作权归作者所有。请勿转载和采集!