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

Zhihua Che zhihua.che at gmail.com
Mon Apr 16 12:51:56 UTC 2012


在 2012年4月16日 下午7:56,RaSca <rasca at miamammausalinux.org> 写道:
> 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.
>


I guess so, but what is the precision of the returned cpu time. I
don't think it's 1/HZ as host machine is according to my experiments.


Thanks for your reply.




More information about the libvirt-users mailing list