<font size=3 face="Times New Roman">Hi,</font><br><br><font size=3 face="Times New Roman">We are working on fixing CPU utilization
calculation of guests (VMs) in Ceilometer metering service of OpenStack.</font><br><br><font size=3 face="Times New Roman">Per that fix, we retrieve, at the
host level, se.statistics.wait_sum (or se.wait_sum in old versions) Linux
kernel schedstat counter of the KVM/QEMU threads – that represent the
VM. That counter denotes the time in milliseconds the thread 'wants' to
run (but not actually running because of a contention).</font><br><br><font size=3 face="Times New Roman">However, as Daniel Berrange mentioned
in the fix review, it would be better to retrieve that information from
libvirt instead and he asked me to raise this in this mailing list.</font><br><br><font size=3 face="Times New Roman">I could not notice that libvirt
exposes such a counter.</font><br><br><font size=3 face="Times New Roman">It would be very good if virDomainInfo
(</font><a href="https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainInfo"><font size=3 color=blue face="Times New Roman"><u>https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainInfo</u></font></a><font size=3 face="Times New Roman">)
can be added with cpuWait in addition to cpuTime it currently has so that
cpuWait will denote the total *time* the VM *wants* to run.</font><br><br><font size=3 face="Times New Roman">Adding cpuWait to any other location
of domain is fine as well.</font><br><br><font size=3 face="Times New Roman">Thanks,</font><br><font size=3 face="Times New Roman">Avi Weit</font><BR>