Hi,

 

My piece of code ( C langage) uses cgroups to retrieve counters related to cpu and memory usage related to KVM guests  hosted by the host where this code runs.

 

I noticed that depending on the O.S. running on  the host , these counters are not found  at the same location :

 

CentOS 7 :

 

ls /sys/fs/cgroup/cpuacct/machine.slice/machine-qemu\\x2drhel6.0.scope/vcpu0

cgroup.clone_children  cgroup.procs  cpuacct.usage         cpu.cfs_period_us  cpu.rt_period_us   cpu.shares  notify_on_release

cgroup.event_control   cpuacct.stat  cpuacct.usage_percpu  cpu.cfs_quota_us   cpu.rt_runtime_us  cpu.stat    tasks

]#

 

RHEL6 :

 

ls /cgroup/cpuacct/libvirt/qemu/VM_Orion-1/vcpu0

cgroup.event_control  cgroup.procs  cpuacct.stat  cpuacct.usage  cpuacct.usage_percpu  notify_on_release  tasks

 

 

1)      May I assume that their meanings is identical ?

2)      Is this difference due to the O.S. or to libvirt ?

3)      I presume I’ve to check this point on Ubuntu , Debian and Fedora .

 

Thanks

 

J.P. Ribeauville

 

P: +33.(0).1.47.17.20.49

.

Puteaux 3 Etage 5  Bureau 4

 

jpribeauville@axway.com
http://www.axway.com

 

 

P Pensez à l’environnement avant d’imprimer.