Re: [PATCH 08/10] provide a version of cpuacct statistics insidecpu cgroup

From: Peter Zijlstra
Date: Wed Oct 05 2011 - 05:10:39 EST


On Sun, 2011-10-02 at 23:21 +0400, Glauber Costa wrote:
> + for_each_online_cpu(cpu) {
> + struct kernel_stat *kstat = per_cpu_ptr(tg->cpustat, cpu);
> + val += kstat->cpustat[USER];
> + val += kstat->cpustat[NICE];
> + }

by using online_cpu, you fail to sum whatever data was accrued on
unplugged cpus, is that a problem?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/