sched: add hierarchical accounting to cpu accounting controller
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 10 Nov 2008 15:11:13 +0000 (20:41 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 11 Nov 2008 11:13:28 +0000 (12:13 +0100)
commit934352f214b3251eb0793c1209d346595a661d80
tree375ac56485c20f7b7cf783c3ca2980a76dc94fce
parentff9b48c3598732926fa09afd7f526981c32a48cc
sched: add hierarchical accounting to cpu accounting controller

Impact: improve CPU time accounting of tasks under the cpu accounting controller

Add hierarchical accounting to cpu accounting controller and include
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@linux.vnet.ibm.com>
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Paul Menage <menage@google.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/controllers/cpuacct.txt [new file with mode: 0644]
kernel/sched.c