]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add per-vcpu delay stats
authorAleksei Zakharov <zaharov@selectel.ru>
Fri, 19 Feb 2021 20:08:34 +0000 (23:08 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Mar 2021 12:35:05 +0000 (13:35 +0100)
commit4719ec15e97d96befaaeecc7bd5c7bcdce53e53d
treebafaf5c62e4125c5622be3bceaf272ff691091d8
parent9b2f6c103028ae2dfab21f152f69352a1bfd72b9
qemu: add per-vcpu delay stats

This patch adds delay time (steal time inside guest) to libvirt
domain per-vcpu stats. Delay time is an important performance metric.
It is a consequence of the overloaded CPU. Knowledge of the delay
time of a virtual machine helps to understand if it is affected and
estimate the impact.

As a result, it is possible to react exactly when needed and
rebalance the load between hosts. This is used by cloud providers
to provide quality of service, especially when the CPU is
oversubscribed.

It's more convenient to work with this metric in a context of a
libvirt domain. Any monitoring software may use this information.

Signed-off-by: Aleksei Zakharov <zaharov@selectel.ru>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/manpages/virsh.rst
src/libvirt-domain.c
src/qemu/qemu_driver.c