Displaying 1 result from an estimated 1 matches for "print_cpu_util".
2007 Oct 08
0
Node CPU Utilization
...ardware node''s CPU utilization, I''m getting values
between .0 and 1.0. These values however do not seem to correspond to
load on the domains themselves. I have a program that print these
values once a second for all cpus on the node:
import XenAPI
import time
session = None
def print_cpu_utilization():
# Find a non-template VM object
cpus = session.xenapi.host_cpu.get_all()
while True:
for cpu in cpus:
load = session.xenapi.host_cpu.get_utilisation(cpu)
print load
time.sleep(1)
url = ''httpu:///var/run/xend/xen-api.sock'&...