]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Report cache occupancy (CMT) with domstats
authorWang Huaqiang <huaqiang.wang@intel.com>
Mon, 26 Nov 2018 17:56:16 +0000 (01:56 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 27 Nov 2018 00:33:01 +0000 (19:33 -0500)
commita91ebc8990b20309a4c51e10051dcf703531551e
treec34e9a498b14bd095bcc2488e8ce14c5f55ac6df
parenta60b7d7582574e1eebb038b1cb977238b6a422aa
qemu: Report cache occupancy (CMT) with domstats

Adding the interface in qemu to report CMT statistic information
through command 'virsh domstats --cpu-total'.

Below is a typical output:

         # virsh domstats 1 --cpu-total
         Domain: 'ubuntu16.04-base'
           ...
           cpu.cache.monitor.count=2
           cpu.cache.monitor.0.name=vcpus_1
           cpu.cache.monitor.0.vcpus=1
           cpu.cache.monitor.0.bank.count=2
           cpu.cache.monitor.0.bank.0.id=0
           cpu.cache.monitor.0.bank.0.bytes=4505600
           cpu.cache.monitor.0.bank.1.id=1
           cpu.cache.monitor.0.bank.1.bytes=5586944
           cpu.cache.monitor.1.name=vcpus_4-6
           cpu.cache.monitor.1.vcpus=4,5,6
           cpu.cache.monitor.1.bank.count=2
           cpu.cache.monitor.1.bank.0.id=0
           cpu.cache.monitor.1.bank.0.bytes=17571840
           cpu.cache.monitor.1.bank.1.id=1
           cpu.cache.monitor.1.bank.1.bytes=29106176

Signed-off-by: Wang Huaqiang <huaqiang.wang@intel.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/libvirt-domain.c
src/qemu/qemu_driver.c
tools/virsh.pod