[libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

RaSca rasca at miamammausalinux.org
Mon Apr 16 11:56:36 UTC 2012


Il giorno Lun 16 Apr 2012 13:37:24 CEST, Zhihua Che ha scritto:
[...]
>    How can I get the CPU usage of the domain?
[...]

As Daniel told me two days ago, cpuTime shows the absolute CPU time
consumed since boot. To get % CPU time, take two readings 'n' seconds
apart and calculate the delta between them.

-- 
RaSca
Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
rasca at miamammausalinux.org
http://www.miamammausalinux.org




More information about the libvirt-users mailing list