[libvirt] [RFC] New libvirt API for domain memory statistics reporting

Ryota Ozaki ozaki.ryota at gmail.com
Wed Dec 9 09:47:09 UTC 2009


On Wed, Dec 9, 2009 at 9:41 AM, Matthias Bolte
<matthias.bolte at googlemail.com> wrote:
>
> Some general comments:
>
> - You should name it virDomainMemoryStats to stay in sync with the
> naming scheme.
>
> - The struct members are an exact copy of that what virtio provides,
> maybe we should see what different hypervisors can provide, discuss
> what the useful parts are and define a general superset. For example
> VMware ESX provides more/other memory statistics:
> http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/memory_counters.html

Yes, in LXC case, we will get such memory statistics via cgroup.memory
and they are like:

cache 2375860224
rss 57614336
mapped_file 3731456
pgpgin 131483871
pgpgout 130889761
swap 32768
inactive_anon 32731136
active_anon 24948736
inactive_file 1878589440
active_file 497172480
unevictable 0
...

  ozaki-r




More information about the libvir-list mailing list