On 01/03/2012 09:09 PM, Lai Jiangshan wrote:
"virt-top -1" can call virDomainGetPcpusUsage()
periodically and get
the CPU activities per CPU. (See the last patch in this series).
virsh is also added a pcpuinfo command which calls virDomainGetPcpusUsage(),
it gets information about the physic CPUs, such as the usage of
CPUs, the current attached vCPUs.
I think this is invasive enough that we should defer it until after the
0.9.9 release, but it's definitely on my list of things to review and
not forgotten.
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org