From: Derbyshev Dmitry <dderbyshev(a)virtuozzo.com>
QEMU reports timestamp and available along with other memory statistics.
This information was not saved into domain statistics.
1st to 3rd patches add new stats to reports.
Also, to collect all balloon statistics for all guests it was necessary to make
several libvirt requests (one per VE)..
4th and 5th patch allows doing this via qemuConnectGetAllDomainStats in one
request.
6th patch speed-ups DomainMemoryStats by caching so that requests would not gain
much additional overhead from previous patches.
7th patch adds probbing and can be dropped.
Changes since v1:
* Enum numeration fixed
* Macro getting "usage" field fixed
Changes since v2:
* Previous patches were on wrong branch
* qemu's stat name was "stat-available-memory"
Changes since v3:
* domstats patch added
Changes since v4:
* Formatted and rephrased commit messages
* Fixed libvirt crash, caused by simultaneous incorrect QUERY job execution
Changes since v5:
* Updated virsh.pod
* Splitted patch about domstats into 2 patches
* Do not report balloon.current as balloon.actual
Changes since v6:
* caching added for DomainMemoryStats
Derbyshev Dmitry (5):
virsh: Add balloon stats description to .pod
qemu: expand domain memory statistics with 'usable'
qemu: expand domain memory statistics with 'last-update' timestamp
qemu: split qemuDomainMemoryStats into internal and external functions
qemu: return balloon statistics when all domain statistics reported
Igor Redko (2):
qemu: add cache for DomainMemoryStats
qemu-probes: add probes for cache MemoryStats cache
include/libvirt/libvirt-domain.h | 11 ++-
src/libvirt-domain.c | 5 ++
src/libvirt_qemu_probes.d | 4 +
src/qemu/qemu_domain.h | 6 ++
src/qemu/qemu_driver.c | 187 +++++++++++++++++++++++++++++++++++----
src/qemu/qemu_monitor_json.c | 24 +++--
tools/virsh-domain-monitor.c | 4 +
tools/virsh.pod | 29 +++++-
8 files changed, 242 insertions(+), 28 deletions(-)
--
1.9.5.msysgit.0