[libvirt] KVM Domain memory and disk usage

Qiang Fu fuqiang2310 at gmail.com
Fri Feb 28 20:21:30 UTC 2014


Hi Eric,

When we run the "virsh dommemstat" cmd, it returns us two values, actual
and rss.

I am referring to the rss here. I believe this is the qemu process in the
host. So you mean it could be greater than the maximum memory allocation
("memory" in "virsh dumpxml") to the guest? Why?

Thanks,
Bruce


On Fri, Feb 28, 2014 at 3:15 PM, Eric Blake <eblake at redhat.com> wrote:

> On 02/28/2014 11:28 AM, Qiang Fu wrote:
>
> >> Right now we can get domain memory statistics through the following
> virsh
> >> cmds:
> >> 1.      dumpxml: this returns "memory" and "currentMemory"
> >>
> >
> > This are settings for the domain that you can change before the domain
> > starts.  "memory" is the maximum it can reach and "currentMemory" is
> > what the domain will have it cut down to using a memballoon.
> >
> > However somehow we can observe RSS greater than the "memory", which is
> > supposed to be the maximum it can reach. Have you ever seen this happen
> and
> > could you provide us any comment?
>
> RSS from where?  Are you looking at the memory usage by the qemu process
> in the host, or the amount of memory in use by the guest?  The qemu
> process uses more memory than what it makes available to the guest.
>
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140228/33415fdf/attachment-0001.htm>


More information about the libvir-list mailing list