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

Re: [libvirt] KVM Domain memory and disk usage

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?


On Fri, Feb 28, 2014 at 3:15 PM, Eric Blake <eblake 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

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