在我的笔记本电脑上安装 Fedora 33(也尝试过 kubuntu 和 ubuntu 20.04)后,我遇到了这样的问题:在一段时间后,CPU 随机卡在低频(400MHz-800Mhz)并且不加速,导致响应时间非常慢。
cpupower 命令不会更改 CPU 速度,即使它返回状态代码 0。
我尝试禁用 intel_pstate 和 Thermald。
一些系统信息:
$ uname -a
Linux localhost.localdomain 5.10.7-200.fc33.x86_64 #1 SMP Tue Jan 12 20:20:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/*release
Fedora release 33 (Thirty Three)
$ grep "model name" /proc/cpuinfo
model name : Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
$ grep "cpu MHz" /proc/cpuinfo
cpu MHz : 800.004
cpu MHz : 800.002
cpu MHz : 800.001
cpu MHz : 800.002
cpu MHz : 800.005
cpu MHz : 800.001
cpu MHz : 800.000
cpu MHz : 800.002
$ 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: 400 MHz - 4.90 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 400 MHz and 4.90 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 500 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
答案1
似乎https://github.com/erpalma/throttled工具解决了这个问题。 (我在 fedora 32 中测试了几天,在 Ubuntu 20 中测试了几个小时)。