[libvirt] libvirt domain memory statistics

Marko Myllynen myllynen at redhat.com
Wed Sep 6 11:09:25 UTC 2017


Hi,

At least on RHEL 7 / libvirt-3.2 for domainListGetStats we only have the
following in libvirt.py:

# virDomainStatsTypes
VIR_DOMAIN_STATS_STATE = 1
VIR_DOMAIN_STATS_CPU_TOTAL = 2
VIR_DOMAIN_STATS_BALLOON = 4
VIR_DOMAIN_STATS_VCPU = 8
VIR_DOMAIN_STATS_INTERFACE = 16
VIR_DOMAIN_STATS_BLOCK = 32
VIR_DOMAIN_STATS_PERF = 64

Is there a reason memory statistics is not included here? Would it be
possible to allow querying memory statistics over domainListGetStats as
well in one operation? Currently <nr-of-domains> calls from Python are
needed to fetch memory statistics for all guests which may be a bit
costly in larger environments.

Thanks,

-- 
Marko Myllynen




More information about the libvir-list mailing list