Re: [PATCHv4 00/10] Add BlkIO and CPU/mem stat API implementations for lxc

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

 



On 14.02.2014 18:48, Thorsten Behrens wrote:
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'.

v4 addresses the last remaining review comments.

Thorsten Behrens (10):
   Add util virCgroupGetBlkioIo*Serviced methods.
   Implement domainMemoryStats API slot for LXC driver.
   Make qemuGetDomainTotalCPUStats a virCgroup function.
   Implement domainGetCPUStats for lxc driver.
   Implement lxcDomainBlockStats* for lxc driver
   Widening API change - accept empty path for virDomainBlockStats
   Add unit test for virCgroupGetBlkioIo*Serviced
   Add unit test for virCgroupGetMemoryUsage.
   Fix misspelled cpuacct.usage_percpu in cgroup mock.
   Add unit test for virCgroupGetPercpuStats.

  src/libvirt.c                |   8 +-
  src/libvirt_private.syms     |   4 +
  src/lxc/lxc_driver.c         | 300 +++++++++++++++++++++++++++++++++
  src/qemu/qemu_driver.c       |  54 +-----
  src/util/vircgroup.c         | 382 +++++++++++++++++++++++++++++++++++++++++++
  src/util/vircgroup.h         |  24 +++
  tests/testutilslxc.h         |   3 +
  tests/vircgroupmock.c        | 100 ++++++++++-
  tests/vircgrouptest.c        | 230 ++++++++++++++++++++++++++
  tools/virsh-domain-monitor.c |  11 +-
  tools/virsh.pod              |   5 +-
  11 files changed, 1059 insertions(+), 62 deletions(-)


ACKed series. I've fixed all the small nits and pushed. Congratulations on first big contribution!

Michal

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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]