Re: [Newbie question] Why usage of CPU inside VM and outside VM is different

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/01/20 16:57, Gregory Esnaud wrote:
> 
> From an hypervisor (via top command) point of view our VM is
> consuming 9 CPU (900%). This was reported by our platform provider. 
> From a VM point of view we are consuming only 2 CPU (200%), with a
> top also.
> 
> Our provider claim us to explain why we are consuming so much CPU.
> But we cannot troubleshoot the infra as it's not our responsibility.
> From our point of view, everything is ok.

Are you using only 2 CPUs at 100%, or are you using 9 CPUs at a total of
200%?  If the former, it is possible that you are using something like
idle=poll, so the machine _is_ idle but still consuming 100% host CPU.
This is something that you should know, however.

If the latter, the host is probably doing a little bit of busy waiting
to improve your performance.  The provider can disable it using the
kvm.halt_poll_ns=0 module parameter and there is nothing that you can do
about it.  But it is unlikely that it causes the utilization to jump so
much.

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux