This patch set adds block io, memory and domain cpu statistics API
slot implementations to the LXC driver, in order to get linux
container monitoring and accounting a bit closer to qemu standards.

The last patch is a tad quirky (happy to hear suggestions on
alternative ways), in that it widens the permissible value set
at the .domainBlockStats slot: for lxc guests, it is relatively
likely to have zero disk devices, since host filesystems can be
used via passthrough bind mounts. Therefore, passing the null ptr
or the zero-length string as device path, is interpreted as 'return
summary stats for the entire domains's block io'.

Thorsten Behrens (6):
  Add util virCgroupGetBlkioIo*Serviced methods.
  Implement domainMemoryStats API slot for LXC driver.
  Make qemuGetDomainTotalCPUStats a virCgroup function.
  Implement domainGetCPUStats for lxc driver.
  Implemet lxcDomainBlockStats for lxc driver
  Widening API change - accept empty path for virDomainBlockStats

 src/libvirt.c              |   1 -
 src/libvirt_private.syms   |   3 +
 src/lxc/lxc_driver.c       | 245 ++++++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_driver.c     |  56 +---------
 src/remote/remote_driver.c |   2 +
 src/test/test_driver.c     |   2 +
 src/util/vircgroup.c       | 261 +++++++++++++++++++++++++++++++++++++++++++++
 src/util/vircgroup.h       |  17 +++
 src/xen/xen_driver.c       |   2 +
 9 files changed, 536 insertions(+), 53 deletions(-)

-- 
1.8.4

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

Reply via email to