deepak@fluentsoft.com
2014-May-23 07:16 UTC
[libvirt-users] How i can calculate cpu utilization percentage for host using python libvirt API.
Hi, How i can calculate cpu utilization percentage for host using python libvirt API. Which function can i use for calulating cpu percentage of host and Virtual Machines? 1)Host cpu utilization =================== I tried getCPUStats() function,it gives the following output.Is there any way to calculate cpu percentage from the following output? Is there any other function availabe for calculating cpu utilization percentage? output:{'kernel': 34870000000L, 'idle': 3522190000000L, 'user': 209930000000L, 'iowait': 132240000000L} import libvirt conn=libvirt.open('qemu+ssh://root@192.168.1.4/system') conn.getCPUStats(-1,0) Thanks and Regards, Deepak S ------------------------- Message sent via Atmail Open - http://atmail.org/
Reasonably Related Threads
- How i can calculate cpu utilization percentage for domain running under a host using libvirt API.
- getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
- Issue with getCPUStats and getMemoryStats
- Finally upgrading from v1.0.15 to v1.2.16 -- advice please
- Who's wrong, atmail or dovecot?