无法在 Linux 中更改 CPU 速度

无法在 Linux 中更改 CPU 速度

我的笔记本电脑上安装了 Fedora 13。不知为何,它似乎总是以 1GHz 运行,尽管最高速度是 1.67GHz(即使在 100% 负载下)。

cpufreq-info的输出:

analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 1000 MHz - 1.67 GHz
  available frequency steps: 1.67 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: ondemand, userspace, performance
  current policy: frequency should be within 1000 MHz and 1000 MHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 1000 MHz (asserted by call to hardware).
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 1000 MHz - 1.67 GHz
  available frequency steps: 1.67 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: ondemand, userspace, performance
  current policy: frequency should be within 1000 MHz and 1000 MHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 1000 MHz (asserted by call to hardware).

我尝试通过设置来改变限制cpufreq-set -r -g userspace -c 0 -d 1000MHz -u 1670MHz,但输出仍然相同(特别是“频率应在 1000 MHz 和 1000 MHz 之内”)。

对于如何改变限制有什么想法吗?

答案1

为什么要使用用户空间调控器?根据 Linux 内核文档 (Documentation/cpu-freq/governors.txt在内核源代码中):

CPUfreq 调节器“用户空间”允许用户或以 UID“root”运行的任何用户空间程序将 CPU 设置为特定频率 [...]

在我看来,这也意味着选择此调节器时 CPU 频率不会适应负载。我建议您切换到“按需”或“保守”调节器,看看 CPU 负载过大时会发生什么。我希望这能解决您的问题。

答案2

你必须通过频率以 KHz 为单位

cpufreq-set -c 0 -f 1670000

相关内容