lkml.org 
[lkml]   [2011]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 08/10] provide a version of cpuacct statistics inside cpu cgroup
From
Date
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?




\
 
 \ /
  Last update: 2011-10-05 11:13    [W:0.133 / U:1.028 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site