Re: [libvirt] [PATCHv5 2/2] Adds support to param 'vcpu_time' in qemu_driver.

2012-05-18 Thread Hu Tao
On Thu, May 17, 2012 at 03:56:48PM -0600, Eric Blake wrote: From: Hu Tao hu...@cn.fujitsu.com This involves setting the cpuacct cgroup to a per-vcpu granularity, as well as summing the each vcpu accounting into a common array. Now that we are reading more than one cgroup file, we

Re: [libvirt] [PATCHv5 2/2] Adds support to param 'vcpu_time' in qemu_driver.

2012-05-18 Thread Eric Blake
On 05/18/2012 03:09 AM, Hu Tao wrote: On Thu, May 17, 2012 at 03:56:48PM -0600, Eric Blake wrote: From: Hu Tao hu...@cn.fujitsu.com This involves setting the cpuacct cgroup to a per-vcpu granularity, as well as summing the each vcpu accounting into a common array. Now that we are reading

[libvirt] [PATCHv5 2/2] Adds support to param 'vcpu_time' in qemu_driver.

2012-05-17 Thread Eric Blake
From: Hu Tao hu...@cn.fujitsu.com This involves setting the cpuacct cgroup to a per-vcpu granularity, as well as summing the each vcpu accounting into a common array. Now that we are reading more than one cgroup file, we double-check that cpus weren't hot-plugged between reads to invalidate our