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 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 | 8 +-
src/libvirt_private.syms | 3 +
src/lxc/lxc_driver.c | 239 +++++++++++++++++++++++++++++++++++
src/qemu/qemu_driver.c | 54 +-------
src/util/vircgroup.c | 291 +++++++++++++++++++++++++++++++++++++++++++
src/util/vircgroup.h | 17 +++
tools/virsh-domain-monitor.c | 11 +-
tools/virsh.pod | 5 +-
8 files changed, 569 insertions(+), 59 deletions(-)
--
1.8.4