Re: Problem in getting memory statistics

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

 



At Sat, 15 Mar 2014 23:33:59 +0100,
Pasquale Dir wrote:
> 
> I have another problem.
> As in java bindings there is no way to obtain cpu stats I decided to use a
> python script.
> It gives me, for the guest domain, cpu time, system time and user time.
> Now, what does it mean cpu time? I though that it could be the overall cpu
> time given to this vm...but the sum doesn't add up: user_time+system_time
> != cpu_time.
> As I would need to get a %cpu usage, like virt-manager does (so it IS
> possible, and it IS in python), what operation do I need to do to make this
> happen?

Have a look at the implementation of the _sample_cpu_stats method of
the vmmDomain class here:

https://git.fedorahosted.org/cgit/virt-manager.git/tree/virtManager/domain.py

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux