这是一个之前被广泛讨论过的问题。然而,这些建议的方法/程序对我都不起作用。
我在一台无风扇微型计算机上运行 Ubuntu 14.04,内核 4.4.0-040400-generic,Intel Celeron J1800 双核 CPU 2.41GHz。MB:
lspci 00:00.0 主机桥:英特尔公司凌动处理器 Z36xxx/Z37xxx 系列 SoC 事务寄存器(rev 0e) 00:02.0 VGA 兼容控制器:英特尔公司凌动处理器 Z36xxx/Z37xxx 系列图形和显示器(rev 0e)
cpufreqd 调节器策略在所有配置文件中设置为性能,在所有规则中设置为 minfreq 1330000 maxfreq 2410000。
系统可能运行几个小时,除了短暂的节流峰值外没有其他问题。它们可能持续几毫秒或几秒。每当我检查 CPU 温度(传感器)时,它们都保持在 <= 40 度。甚至没有接近阈值(设置为 80)。只要 CPU 节流保持在限制范围内(2.14GHz - 1.33GHz),一切就没问题。但最终 CPU 频率会低于限制,例如 667MHz。然后时钟变得太慢,每分钟偏差 30 秒。Ntp 或 ntpdate 都无济于事。重新启动或停止 cpufreqd 无济于事。thermald 或我想到的任何其他东西也是如此。删除 cpufrequtils 或 thermald 无济于事,在启动时禁用 intel_pstate 也无济于事。4.2 内核也出现同样的问题。内核中到底是什么在降低 CPU 频率?
当 CPU 频率低于限制时,它们将永远无法恢复正常,即使根据传感器的温度为 37 或 38 度。唯一的解决办法是重新启动,但这当然不是解决办法。有什么想法吗?
以下是系统正常运行 11 小时后开始每分钟偏移 40 秒的情况:
Apr 5 07:05:07 kernel: [41878.651689] CPU0: Core temperature above threshold, cpu clock throttled (total events = 18)
Apr 5 07:05:07 kernel: [41878.651982] mce_notify_irq: 2 callbacks suppressed
Apr 5 07:05:07 kernel: [41878.651986] mce: [Hardware Error]: Machine check events logged
Apr 5 07:05:07 kernel: [41878.652176] CPU1: Core temperature above threshold, cpu clock throttled (total events = 18)
Apr 5 07:05:07 kernel: [41878.652429] mce: [Hardware Error]: Machine check events logged
Apr 5 07:05:08 mcelog: Family 6 Model 37 CPU: only decoding architectural errors
CPU频率信息
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to [email protected], please.
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.33 GHz - 2.58 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 1.33 GHz and 2.41 GHz.
The governor "performance" may decide which speed to use within this range.
current CPU frequency is 667 MHz.
analyzing CPU 1:
driver: intel_pstate
CPUs which run at the same hardware frequency: 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 0.97 ms.
hardware limits: 1.33 GHz - 2.58 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 1.33 GHz and 2.41 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 667 MHz.
传感器
acpitz-virtual-0
Adapter: Virtual device
temp1: +26.8°C (crit = +90.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +36.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +36.0°C (high = +105.0°C, crit = +105.0°C)
答案1
好的,似乎有些内核版本与我的设置存在问题。从以下位置拉取一个较新的(2015 年 6 月 9 日)可信特定内核(3.14)http://kernel.ubuntu.com/~kernel-ppa/mainline/已经解决了问题。
CPU 缩放功能已关闭,CPU 以恒定的 2.929GHz 频率运行。系统在内核安装时自行决定将 CPU 速度设置为那样!(官方最大频率 2.41GHz)传感器仍处于低位,时钟保持精确到秒。