Re: How does virt-manager get the CPU usage of a guest/vm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/13/2014 10:56 PM, Restituto Marcus Arevalo wrote:
> Hi,
> 
> I need to know how the virt-manager is getting the CPU usage of each guest/vm? I mean where does it get the graph it outputs? Does anybody have an idea where I should start researching? I tried understanding the Libvirt API but I think it just outputs cpu time. Any suggestion would be much appreciated. Thanks

You are asking a FAQ; search the list archives for other answers to this
question.  Meanwhile, the source code is your friend.  virt-manager is
using the python bindings; and here is a program using the C bindings
for the same purpose:

http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/domtop/domtop.c

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux