如何使 cpugovernor intel_pstate 稳定?

San*_*sak 6 cpu 14.04 governor

我正在尝试在 cpu 调节器中设置特定频率。但是,我无法这样做。我的处理器是 12*Intel(R) Xeon (R) CPU E5-2620 v3 @2.40 GHz

使用 intel_pstate 驱动程序,它提供 1.20 GHz -3.20 GHz 的频率范围。当前频率缩放,我无法设置为特定频率。我将州长设置为性能。但它没有帮助。cpufreq-set -r -f 3.2GHz – 不起作用;

我试图设置较低的频率;cpufreq-set -r -d 3.2GHz;没有显示任何错误,但即便如此,频率仍会随时间变化。

我禁用了 intel_pstate(在启动时)并激活了 acpi 驱动程序。但是使用 acpi,我可以在 12 核时获得 2.4 GHz 的最大值。这个 2.4 GHz,我可以用 cpufreq-set -r -f 一直保持稳定。但我无法将其设置为 3.2 GHz。

谁能告诉我如何设置使用 cpugovernor,以便我可以将频率设置为 3.2 GHz?我的操作系统是 ubuntu 14.4.3 LTS,内核版本是 3.19.0-25-generic。

cpufreq-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: 0.97 ms.
  hardware limits: 1.20 GHz - 3.20 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 3.20 GHz and 3.20 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.85 GHz.
Run Code Online (Sandbox Code Playgroud)

对于其他内核,结果也是这样,电流频率随时间变化。

截图_i7z

pstate freq 截图

Dou*_*ies 4

您的处理器不可能始终处于 3200MHz 的最大睿频速率。如果您有多个核心同时处于活动状态,那么最大频率将仅为 2.6Ghz,并且该限制是处理器本身的基本限制(另请参阅您的 i7z 屏幕截图 - 最大睿频乘数线)。然而,通过相应地设置最小和最大百分比数字,您几乎可以轻松地让所有 CPU 始终保持在 2.6 GHz。但是,请注意,有时您仍然会观察到较低的频率,因为处理器可以在非常低的负载条件下自行回退。更简单的方法是将睿频设置为关闭和性能模式,有效地使所有 CPU 始终以 2.4 GHz 运行(但同样,处理器本身可以在极低负载下退出)。

设置 2.6Ghz 的示例(如果我计算正确的话):

echo "81" | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
echo "81" | sudo tee /sys/devices/system/cpu/intel_pstate/min_perf_pct
Run Code Online (Sandbox Code Playgroud)

非涡轮方法的示例:

echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
powersave
powersave
powersave
powersave
$ sudo su
# for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done
# exit
exit
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance
performance
performance
performance
performance
Run Code Online (Sandbox Code Playgroud)