Re: libvirt memory flags

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

 



On Wed, Dec 31, 2014 at 01:36:21AM +0000, Narayanan, Krishnaprasad wrote:
Hallo all,

I am using libvirt version 1.1.1 on one of the nodes which has several VMs. When I executed the command,  virsh dommemstat <domain UUID>, I am getting the following flags as output: actual, swap_in and rss. The API does not return "unused memory" flag that is associated to the virtual machine / domain.


It's hard to define what you mean by "unused" memory.  The API you are
talking about returns (at least for the QEMU driver) memory
information about the process itself.  These are, of course, different
values than he amount of memory inside the VM.  If you want to know
what is the current memory amount set for the VM, you can find it in
the XML output of 'virsh dumpxml <domain>'.  Further data should be
available from guest agent, but libvirt does not have an API for
this.  You can, however, query that information using an arbitrary
guest agent command (virsh qemu-agent-command), but I'm not sure about
that and neither about the commands.

Martin

Can I kindly know is there a documentation that describes different memory flags? Further, can I get help from the forum to obtain information about the unused memory associated with the virtual machine / domain?

Regards,
Krishnaprasad

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]