Help request (obtaining %cpu for a guest domain)

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

 



I am a student and I am using python libvirt api, like the ones which were used in order to build virt-manager.

I am wondering how to obtain the %cpu usage and I thought asking to you, as you did it for your program which is written in python.

getCpuStats() function on a domain object gives me cpu_time,user_time,system_time...I don't know how to combine them in order to obtain the % usage.

For the guest system I take the delta between two successive measurations and make a division, putting idle time just on the denominator...but here?
Maybe the cpu_time is actually an idle time for the guest?
_______________________________________________
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