Sorry, please ignore the last message that was for all processes on the host, 
rather than per domain

From: Tahhan, Maryam
Sent: Wednesday, February 15, 2017 7:04 PM
To: '[email protected]' <[email protected]>
Cc: 'MORTON, ALFRED C (AL)' <[email protected]>
Subject: RE: [barometer] libvirt cpu metrics some information to get us started

It looks like we can also get, idle and iowait stats...

CPU time Statistics:

VIR_NODE_CPU_STATS_KERNEL: The cumulative CPU time which spends by kernel, when 
the node booting up.(nanoseconds)
VIR_NODE_CPU_STATS_USER: The cumulative CPU time which spends by user 
processes, when the node booting up.(nanoseconds)
VIR_NODE_CPU_STATS_IDLE: The cumulative idle CPU time, when the node booting 
up.(nanoseconds)
VIR_NODE_CPU_STATS_IOWAIT: The cumulative I/O wait CPU time, when the node 
booting up.(nanoseconds)
VIR_NODE_CPU_STATS_UTILIZATION: The CPU utilization. The usage value is in 
percent and 100% represents all CPUs on the server.

https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCPUStats

From: Tahhan, Maryam
Sent: Wednesday, February 15, 2017 7:00 PM
To: '[email protected]' 
<[email protected]<mailto:[email protected]>>
Cc: 'MORTON, ALFRED C (AL)' <[email protected]<mailto:[email protected]>>
Subject: [barometer] libvirt cpu metrics some information to get us started


Hi folks



I'm just following up on my action: [ACTION] Maryam to double check what cpu 
metrics are available through libvirt as regards the CPU utilization, when you 
are running collectd on the host



I believe the metrics available are:

cpu_time

system_time

user_time



source: 
http://libvirt.org/docs/libvirt-appdev-guide-python/en-US/html/libvirt_application_development_guide_using_python-Guest_Domains-Monitoring-vCPU.html



It looks like they just got merged into collectd: 
https://github.com/collectd/collectd/pull/2175#event-963475816



Definitions for the cpu stats from  
https://libvirt.org/html/libvirt-libvirt-domain.html#VIR_DOMAIN_CPU_STATS_CPUTIME
 :

VIR_DOMAIN_CPU_STATS_CPUTIME

cpu usage (sum of both vcpu and hypervisor usage) in nanoseconds, as a ullong



VIR_DOMAIN_CPU_STATS_SYSTEMTIME

cpu time charged to system instructions in nanoseconds, as a ullong



VIR_DOMAIN_CPU_STATS_USERTIME

cpu time charged to user instructions in nanoseconds, as a ullong



VIR_DOMAIN_CPU_STATS_VCPUTIME

vcpu usage in nanoseconds (cpu_time excluding hypervisor time), as a ullong



A note as regards the accuracy: 
https://www.redhat.com/archives/libvir-list/2009-March/msg00381.html But we'll 
still test it :D



A quick note on the guest clock: 
https://libvirt.org/formatdomain.html#elementsTime

BR
Maryam
_______________________________________________
opnfv-tech-discuss mailing list
[email protected]
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to