Re: Incorrect memory usage returned from virsh

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

 



Thanks for the clarification. I will probe more into dommemstat.


On Fri, Mar 18, 2016, 3:21 PM Eric Blake <eblake@xxxxxxxxxx> wrote:
On 03/18/2016 01:36 PM, Connor Osborn wrote:
> When I run `virsh dominfo <domain>` I get the following:
>
> Id:             455
> Name:           instance-000047e0
> UUID:           50722aa0-d5c6-4a68-b4ef-9b27beba48aa
> OS Type:        hvm
> State:          running
> CPU(s):         4
> CPU time:       123160.4s
> Max memory:     33554432 KiB
> Used memory:    33554432 KiB

That says that the host allows up to 32G memory to be consumed by the
guest, and that no ballooning has taken place so the guest is free to
use it all.  It doesn't mean that the guest is actually using it, though.

> The domain is not at 100% memory capacity. How can I diagnose this further?

You're asking the wrong interface.  dominfo only tells you how much of
the memory balloon is in use (here, none), and does not ask how much
memory the guest claims to be using.

'virsh memtune' and 'virsh dommemstat' ask different questions, and may
be able to give you more insight into the guest's current memory usage
(but it might also be something you can't learn without guest cooperation).

--
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux