search for: getcpustat

Displaying 4 results from an estimated 4 matches for "getcpustat".

Did you mean: getcpustats
2012 Jul 10
1
Issue with getCPUStats and getMemoryStats
Hi, I am facing issue with the calls getCPUStats and getMemoryStats. Please find the error below. AttributeError: 'module' object has no attribute 'VIR_NODE_CPU_STATS_ALL_CPUS' >>> print con.getCPUStats(2, None, 0, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File &...
2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
...I'm trying to use libvirt as a non-root user to obtain statistics on the CPU usage by VMs using the Python API. I'm performing basically the following steps: import libvirt conn = libvirt.openReadOnly(None) dom = conn.lookupByUUIDString('268e38ea-1bc7-41e4-c19e-8eff682e58e4') dom.getCPUStats(True, 0) However, they result in the following error: libvir: QEMU Driver error : Requested operation is not valid: cgroup CPUACCT controller is not mounted --------------------------------------------------------------------------- libvirtError Traceback (most rec...
2014 May 23
0
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': 20993000000...
2013 May 04
0
Requested operation is not valid: domain is not running but exactly vm is running
hi,all requested operation is not valid: domain is not running but exactly vm is running when call getCPUStats,interfaceStats... system: centos6.3 libvirt-0.9.10-21.el6_3.7.x86_64 libvirt-python-0.9.10-21.el6_3.7.x86_64 thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130504/04d66f68/attachment.htm&g...