虚拟机虚拟化cpu性能_如何调整系统以在虚拟化情况下实现高性能?
虚拟机虚拟化cpu性能Most time, we need to tune system parameters to achieve better performance but what the general parameters to be tuned in Linux systems. 大多数时候,我们需要调整系统参数以获得更好的性能,但是需要调整Linux 系统中的一般参数。I th..
虚拟机虚拟化cpu性能
Most time, we need to tune system parameters to achieve better performance but what the general parameters to be tuned in Linux systems.
大多数时候,我们需要调整系统参数以获得更好的性能,但是需要调整Linux 系统中的一般参数。
I think you may want to add following parameters to Kernel boot (/etc/default/grub) parameters
我认为您可能想在内核启动(/ etc / default / grub)参数中添加以下参数
intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll intel_pstate=disable
At the same time, you may also want to shutdown/open Pause Loop Exiting (PLE). See [2] [3] for more details about PLE, and see [1] [4] for more details about Intel C-States and P-States.
同时,您可能还想关闭/打开“暂停循环退出”(PLE)。 有关PLE的更多详细信息,请参见[2] [3],有关Intel C状态和P状态的更多详细信息,请参见[1] [4]。
How to Shutdown PLE:
如何关闭PLE:
sudo rmmod kvm_intel
sudo modprobe kvm_intel ple_gap=0 ple_window=0
cat /sys/module/kvm_intel/parameters/ple*
How to turn on PLE:
如何打开PLE:
sudo rmmod kvm_intel
sudo modprobe kvm_intel
cat /sys/module/kvm_intel/parameters/ple*
References
[1] https://stackoverflow.com/questions/12111954/context-switches-much-slower-in-new-linux-kernels
[2] https://www.google.com/patents/US9021497
[3] https://surriel.com/system/files/riel_t_1620_kvm_performance.pdf
[4] https://haypo.github.io/intel-cpus.html
参考资料
[1] https://stackoverflow.com/questions/12111954/context-switches-much-slower-in-new-linux-kernels
[2] https://www.google.com/patents/US9021497
[3] https://surriel.com/system/files/riel_t_1620_kvm_performance.pdf
[4] https://haypo.github.io/intel-cpus.html
IDLE=POLL
means when vCPU is idle CPU will execute No Op
instruction like spin-lock does. This will trigger PLE if PLE is turned on.
IDLE=POLL
表示当vCPU空闲时,CPU将像自旋锁一样执行No Op
指令。 如果PLE打开,这将触发PLE。
Also see this slides for more details about P-States.
另请参阅此幻灯片以获取有关P状态的更多详细信息。
虚拟机虚拟化cpu性能
更多推荐










所有评论(0)