[PATCHv3 0/8] bulk stats: QEMU implementation

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

 



This patchset enhances the QEMU support
for the new bulk stats API to include
equivalents of these APIs:

virDomainBlockInfo
virDomainGetInfo - for balloon stats
virDomainGetCPUStats
virDomainBlockStatsFlags
virDomainInterfaceStats
virDomainGetVcpusFlags
virDomainGetVcpus

This subset of API is the one oVirt relies on.
Scale/stress test on an oVirt test environment is in progress.

changes in v3: more polishing and fixes after first review
- addressed Eric's comments.
- squashed patches which extracts helpers with patches which
  use them.
- changed gathering strategy: now code tries to reap as much
  information as possible instead to give up and bail out with
  error. Only critical errors cause the bulk stats to fail.
- moved away from the transfer semantics. I find it error-prone
  and not flexible enough, I'd like to avoid as much as possible.
- rearranged helpers to have one single QEMU query job with
  many monitor jobs nested inside.
- fixed docs.
- implemented missing virsh domstats bits.

changes in v2: polishing and optimizations.
- incorporated feedback from Li Wei (thanks).
- added documentation.
- optimized block group to gather all the information with just
  one call to QEMU monitor.
- stripped to bare bones merged the 'block info' group into the
  'block' group - oVirt actually needs just one stat from there.
- reorganized the keys to be more consistent and shorter.

The patchset is organized as follows:
- the first patch enhance the internal stats gathering API
  to accomodate the needs of the groups which extract information
  using QEMU monitor jobs.
- the next 6 patches implement the bulk stats groups, extracting
  helpers where do refactoring to extract internal helpers every time
  it is feasible and convenient.
- the last patch enhance the virsh domstats command with options to
  use the new bulk stats.
*** BLURB HERE ***

Francesco Romani (8):
  qemu: bulk stats: extend internal collection API
  qemu: bulk stats: implement CPU stats group
  qemu: bulk stats: implement balloon group
  qemu: bulk stats: implement VCPU group
  qemu: bulk stats: implement interface group
  qemu: bulk stats: implement block group
  qemu: bulk stats: add block allocation information
  virsh: add options to query bulk stats group

 include/libvirt/libvirt.h.in |   5 +
 src/libvirt.c                |  61 +++++
 src/qemu/qemu_driver.c       | 577 +++++++++++++++++++++++++++++++++++++------
 src/qemu/qemu_monitor.c      |  22 ++
 src/qemu/qemu_monitor.h      |  21 ++
 src/qemu/qemu_monitor_json.c | 211 +++++++++++-----
 src/qemu/qemu_monitor_json.h |   4 +
 src/qemu/qemu_monitor_text.c |  13 +
 src/qemu/qemu_monitor_text.h |   4 +
 tools/virsh-domain-monitor.c |  35 +++
 tools/virsh.pod              |   4 +-
 11 files changed, 823 insertions(+), 134 deletions(-)

-- 
1.9.3

--
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]