Messages in this thread |  | | Date | Wed, 05 Nov 2008 14:17:37 +0800 | From | Li Zefan <> | Subject | Re: [PATCH] Add hierarchical accounting to cpu accounting controller |
| |
> +The CPU accounting controller is used to group tasks using cgroups and > +account the CPU usage of these group of tasks.
this group or these groups?
...
> --- a/kernel/sched.c > +++ b/kernel/sched.c > @@ -9236,6 +9236,7 @@ struct cpuacct { > struct cgroup_subsys_state css; > /* cpuusage holds pointer to a u64-type object on every cpu */ > u64 *cpuusage; > + struct cpuacct *parent; > }; >
Maybe the comment needs to be updated?
/* track cpu usage of a group of tasks */ struct cpuacct { ... };
->
/* track cpu usage of a group of tasks and its child groups */
|  |