diff options
author | Paul Menage <menage@google.com> | 2007-10-19 02:39:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:36 -0400 |
commit | 62d0df64065e7c135d0002f069444fbdfc64768f (patch) | |
tree | 9087bf336182ab9c619460ba2370a223200179bc /init | |
parent | 8793d854edbc2774943a4b0de3304dc73991159a (diff) |
Task Control Groups: example CPU accounting subsystem
This example demonstrates how to use the generic cgroup subsystem for a
simple resource tracker that counts, for the processes in a cgroup, the
total CPU time used and the %CPU used in the last complete 10 second interval.
Portions contributed by Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Paul Menage <menage@google.com>
Cc: Serge E. Hallyn <serue@us.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 18b1abc677da..b59a0a95a0e6 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -335,6 +335,13 @@ config PROC_PID_CPUSET | |||
335 | depends on CPUSETS | 335 | depends on CPUSETS |
336 | default y | 336 | default y |
337 | 337 | ||
338 | config CGROUP_CPUACCT | ||
339 | bool "Simple CPU accounting cgroup subsystem" | ||
340 | depends on CGROUPS | ||
341 | help | ||
342 | Provides a simple Resource Controller for monitoring the | ||
343 | total CPU consumed by the tasks in a cgroup | ||
344 | |||
338 | config RELAY | 345 | config RELAY |
339 | bool "Kernel->user space relay support (formerly relayfs)" | 346 | bool "Kernel->user space relay support (formerly relayfs)" |
340 | help | 347 | help |