deepak@fluentsoft.com
2014-May-23 07:19 UTC
[libvirt-users] How i can calculate cpu utilization percentage for domain running under a host using libvirt API.
Hi, How i can calculate cpu utilization percentage for domain running under a host using libvirt API. Which function can i use for calulating cpu percentage? Thanks and Regards, Deepak S ------------------------- Message sent via Atmail Open - http://atmail.org/
Eric Blake
2014-May-23 13:20 UTC
Re: [libvirt-users] How i can calculate cpu utilization percentage for domain running under a host using libvirt API.
[long subject line!] On 05/23/2014 01:19 AM, deepak@fluentsoft.com wrote:> How i can calculate cpu utilization percentage for domain running under a > host using libvirt API. > Which function can i use for calulating cpu percentage?You have to calculate the percentage utilization yourself by making repeated queries to the cpu status calls, and tracking how the cumulative usage grows over time. You may want to look at the source code of virt-top for ideas on how to do it. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Maybe Matching Threads
- How i can calculate cpu utilization percentage for host using python libvirt API.
- How to open virtual machine console using python libvirt.
- Statistical power of correlations.
- How to Calculate Percentage of Data within certain SD of Mean
- errors while testing resource controller using rpec