Re: [PATCH] Add hierarchical accounting to cpu accountingcontroller

From: Bharata B Rao
Date: Tue Nov 04 2008 - 22:24:34 EST


On Tue, Nov 04, 2008 at 09:20:40AM -0800, Randy Dunlap wrote:
> On Tue, 4 Nov 2008 18:19:37 +0530 Bharata B Rao wrote:
>
> > Add hierarchical accounting to cpu accounting controller and cpuacct
> > documentation.
> >
> > Currently, while charging the task's cputime to its accounting group,
> > the accounting group hierarchy isn't updated. This patch charges the cputime
> > of a task to its accounting group and all its parent accounting groups.
> >
> > Reported-by: Srivatsa Vaddagiri <vatsa@xxxxxxxxxxxxxxxxxx>
> > Signed-off-by: Bharata B Rao <bharata@xxxxxxxxxxxxxxxxxx>
> > CC: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> > CC: Ingo Molnar <mingo@xxxxxxx>
> > CC: Srivatsa Vaddagiri <vatsa@xxxxxxxxxxxxxxxxxx>
> > Reviewed-by: Paul Menage <menage@xxxxxxxxxx>
> > ---
> > Documentation/controllers/cpuacct.txt | 32 ++++++++++++++++++++++++++++++++
> > kernel/sched.c | 10 ++++++++--
> > 2 files changed, 40 insertions(+), 2 deletions(-)
> >
> > --- /dev/null
> > +++ b/Documentation/controllers/cpuacct.txt
> > @@ -0,0 +1,32 @@
> > +CPU Accounting Controller
> > +-------------------------
> > +
> > +The CPU accounting controller is used to group tasks using cgroups and
> > +account the CPU usage of these group of tasks.
> > +
> > +The CPU accounting controller supports multi-hierarchy groups. An accounting
> > +group accumulates the CPU usage of all of it's child groups and
>
> its {it's means "it is"}
>
> > +the tasks directly present in it's group.
>
> its

You are right, I was under the wrong impression that possessive case of
"it" is still "it's".

I will resend the patch with other corrections you mentioned only if
Paul/Ingo want this patch to go in.

Thanks for your comments.

Regards,
Bharata.
--
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/