[lkml]   [2011]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 00/10] cgroups: Task counter subsystem v6
Hi Andrew,

This contains minor changes, mostly documentation and changelog
updates, off-case build fix, and a code optimization in

It's hard to put some statistic numbers while testing this feature
given that the result is rather binary: we launch a forkbomb and
either we stop and kill it or the system become unresponsive.

Meanwhile, one can find a testsuite at this address:

It performs several checks to ensure the interface and the behaviour
are reliable after common events like moving tasks around over cgroups
in a hierarchy, forking inside, etc.. It also launches a forkbomb,
tries to stop and kill it. So beware, don't run it on a system that
is doing serious things. Ensure you have CGROUP_TASK_COUNTER set
before, or it may compress the Ten Plagues in your MBR and
inflate the whole after your next reboot.

Changes in v6:

- Update res_counter_common_ancestor() to be O(n+m) instead of O(n*m),
patch from Kirill A. Shutemov (6/10)
- Refine documentation and changelog to better explain the claims and
goals of this subsystem (10/10)
- Fix !CONFIG_CGROUPS build crash (10/10)
- Step over the temporary state that used an ad-hoc fork hook.

Frederic Weisbecker (9):
cgroups: Add res_counter_write_u64() API
cgroups: New resource counter inheritance API
cgroups: Add previous cgroup in can_attach_task/attach_task callbacks
cgroups: New cancel_attach_task subsystem callback
cgroups: Ability to stop res charge propagation on bounded ancestor
res_counter: Allow charge failure pointer to be null
cgroups: Pull up res counter charge failure interpretation to caller
cgroups: Allow subsystems to cancel a fork
cgroups: Add a task counter subsystem

Kirill A. Shutemov (1):
cgroups: Add res counter common ancestor searching

Documentation/cgroups/cgroups.txt | 13 ++-
Documentation/cgroups/resource_counter.txt | 20 +++-
Documentation/cgroups/task_counter.txt | 153 ++++++++++++++++++
block/blk-cgroup.c | 12 +-
include/linux/cgroup.h | 28 +++-
include/linux/cgroup_subsys.h | 8 +
include/linux/res_counter.h | 27 +++-
init/Kconfig | 9 +
kernel/Makefile | 1 +
kernel/cgroup.c | 58 ++++++--
kernel/cgroup_freezer.c | 9 +-
kernel/cgroup_task_counter.c | 239 ++++++++++++++++++++++++++++
kernel/cpuset.c | 6 +-
kernel/events/core.c | 5 +-
kernel/exit.c | 2 +-
kernel/fork.c | 7 +-
kernel/res_counter.c | 97 ++++++++++--
kernel/sched.c | 6 +-
18 files changed, 644 insertions(+), 56 deletions(-)
create mode 100644 Documentation/cgroups/task_counter.txt
create mode 100644 kernel/cgroup_task_counter.c


 \ /
  Last update: 2011-10-03 21:09    [W:0.157 / U:21.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site