Cpufreq 不太想永久设置我的 CPU 频率

Cpufreq 不太想永久设置我的 CPU 频率

我在 Debian 上使用该软件包cpufreq。我已经userspace加载了调速器并且可以应用它。我已经intel_pstate=disabled在我的内核行中使用了,因为否则userspace无法加载。

cpufreq-set -g userspace -c 0是我用来设置调速器的(对于所有 4 个 cpu)。

我正在尝试cpufreq-set -u 0.8GHzcpufreq-set -f 0.8GHz所有 CPU 上将最大频率限制为 800MHz,但它并没有真正起作用。空闲时,CPU 保持在 0.8GHz。cpufreq-info报告很好,说:

  current policy: frequency should be within 800 MHz and 800 MHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 2.49 GHz.

但正如你所看到的,当前频率是CPU允许的最大频率。仅当使用 CPU 并且计算机未处于空闲状态时才会发生这种情况,但如果我说最大 0.8GHz,我并不真正关心它在做什么。那么最大应该是 0.8GHz。

我究竟做错了什么?这是cpufreq-infoCPU 的完整输出,其他看起来相同:

analyzing CPU 3:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.20 GHz, 2.00 GHz, 1.80 GHz, 1.60 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz
  available cpufreq governors: powersave, userspace, conservative, ondemand, performance, schedutil
  current policy: frequency should be within 800 MHz and 800 MHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 2.49 GHz.
  cpufreq stats: 2.50 GHz:5.45%, 2.20 GHz:9.91%, 2.00 GHz:3.50%, 1.80 GHz:4.13%, 1.60 GHz:4.42%, 1.40 GHz:6.70%, 1.20 GHz:12.07%, 1000 MHz:30.03%, 800 MHz:23.79%  (659099)

相关内容