<div dir="ltr">Hi Eric,<div><br></div><div>When we run the "virsh dommemstat" cmd, it returns us two values, actual and rss.</div><div><br></div><div>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?</div>
<div><br></div><div>Thanks,</div><div>Bruce</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 3:15 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 02/28/2014 11:28 AM, Qiang Fu wrote:<br>
<br>
>> Right now we can get domain memory statistics through the following virsh<br>
>> cmds:<br>
>> 1.      dumpxml: this returns "memory" and "currentMemory"<br>
>><br>
><br>
> This are settings for the domain that you can change before the domain<br>
> starts.  "memory" is the maximum it can reach and "currentMemory" is<br>
> what the domain will have it cut down to using a memballoon.<br>
><br>
> However somehow we can observe RSS greater than the "memory", which is<br>
> supposed to be the maximum it can reach. Have you ever seen this happen and<br>
> could you provide us any comment?<br>
<br>
</div>RSS from where?  Are you looking at the memory usage by the qemu process<br>
in the host, or the amount of memory in use by the guest?  The qemu<br>
process uses more memory than what it makes available to the guest.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br></div>