lm-sensors
该程序在 Linux 中的可靠性如何?当我运行 时watch sensors
,我看到温度大幅波动,在 2 秒的刷新间隔内高达 10 摄氏度。下面的两个读数显示了这一点,两个屏幕截图相隔 2 秒拍摄,其中核心 1 在两者之间下降了 8 度。
阅读1:
Every 2.0s: sensors Thu Nov 19 14:02:41 2020
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1: +66.0°C
acpitz-virtual-0
Adapter: Virtual device
temp1: +59.0°C
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +67.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +61.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +67.0°C (high = +100.0°C, crit = +100.0°C)
Core 2: +60.0°C (high = +100.0°C, crit = +100.0°C)
Core 3: +59.0°C (high = +100.0°C, crit = +100.0°C)
pch_skylake-virtual-0
Adapter: Virtual device
temp1: +55.5°C
读数 2,2 秒后获取:
Every 2.0s: sensors Thu Nov 19 14:02:43 2020
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1: +65.0°C
acpitz-virtual-0
Adapter: Virtual device
temp1: +61.0°C
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +59.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +59.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +59.0°C (high = +100.0°C, crit = +100.0°C)
Core 2: +58.0°C (high = +100.0°C, crit = +100.0°C)
Core 3: +57.0°C (high = +100.0°C, crit = +100.0°C)
pch_skylake-virtual-0
Adapter: Virtual device
temp1: +55.5°C
答案1
该程序仅显示硬件报告的内容,非常可靠。
现代 CPU 的温度变化很快,这是意料之中的事。它们会积极调整时钟速度,以在设计约束内实现最佳性能。例如,如果只有一个内核处于高负载状态,那么 CPU 会提高该内核的时钟速度,因为知道由于其他内核的活动较少,该内核的温度会更高。