Re: [libvirt] [PATCH] Fix virCgroupGetPercpuStats with non-continuous present CPUs

2015-04-15 Thread Eric Blake
On 01/22/2015 04:26 AM, Ján Tomko wrote: Per-cpu stats are only shown for present CPUs in the cgroups, but we were only parsing the largest CPU number from /sys/devices/system/cpu/present and looking for stats even for non-present CPUs. This resulted in: internal error: cpuacct parse error

[libvirt] [PATCH] Fix virCgroupGetPercpuStats with non-continuous present CPUs

2015-01-22 Thread Ján Tomko
Per-cpu stats are only shown for present CPUs in the cgroups, but we were only parsing the largest CPU number from /sys/devices/system/cpu/present and looking for stats even for non-present CPUs. This resulted in: internal error: cpuacct parse error --- cfg.mk| 2 +-

Re: [libvirt] [PATCH] Fix virCgroupGetPercpuStats with non-continuous present CPUs

2015-01-22 Thread Michal Privoznik
On 22.01.2015 12:26, Ján Tomko wrote: Per-cpu stats are only shown for present CPUs in the cgroups, but we were only parsing the largest CPU number from /sys/devices/system/cpu/present and looking for stats even for non-present CPUs. This resulted in: internal error: cpuacct parse error ---

Re: [libvirt] [PATCH] Fix virCgroupGetPercpuStats with non-continuous present CPUs

2015-01-22 Thread Ján Tomko
On 01/22/2015 03:21 PM, Michal Privoznik wrote: On 22.01.2015 12:26, Ján Tomko wrote: Per-cpu stats are only shown for present CPUs in the cgroups, but we were only parsing the largest CPU number from /sys/devices/system/cpu/present and looking for stats even for non-present CPUs. This

Re: [libvirt] [PATCH] Fix virCgroupGetPercpuStats with non-continuous present CPUs

2015-01-22 Thread Michal Privoznik
On 22.01.2015 15:52, Ján Tomko wrote: On 01/22/2015 03:21 PM, Michal Privoznik wrote: On 22.01.2015 12:26, Ján Tomko wrote: Per-cpu stats are only shown for present CPUs in the cgroups, but we were only parsing the largest CPU number from /sys/devices/system/cpu/present and looking for stats