14.04如何使 cpugovernor intel_pstate稳定?

分享于 

2分钟阅读

ubuntu

  繁體

问题

我试图在cpu调控器中设置特定的频率,处理器是 12*Intel(R) Xeon (R) CPU E5-2620 v3 @2.40 GHz

我试图设置低频率;

cpufreq-set -r -d 3.2 GHz; 
不会显示错误,但频率会随时间变化。

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.




答案1

您的处理器不可能一直保持3200MHz的最大加速速率。但是,请注意,你仍然会观察到有时更少的频率,因为处理器可以在非常低的负载条件下自行退出,

设置2.6 Ghz的示例:


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



非turbo方法的示例:


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





INT  STA  MAKE  Intel  CPU  
相关文章