OpenVZ Forum - RDF feed
type: channel
items: [PATCH 01/33] task containersv11 basic task container framework

[PATCH 01/33] task containersv11 basic task container framework
type: item
description: Generic Process Control Groups -------------------------- There have recently been various proposals floating around for resource management/accounting and other task grouping subsystems in the kernel, including ResGroups, User BeanCounters, NSProxy cgroups, and others. These all need the basic abstraction of being able to group together multiple processes in an aggregate, in order to track/limit the resources permitted to those processes, or control other behaviour of the processes, and all implement this grouping in different ways. This patchset provides a framework for tracking and grouping processes into arbitrary "cgroups" and assigning arbitrary state to those groupings, in order to control the behaviour of the cgroup as an aggregate. The intention is that the various resource management and virtualization/cgroup efforts can also become task cgroup clients, with the result that: - the userspace APIs are (somewhat) normalised - it's easier to test e.g. the ResGroups CPU controller in conjunction with the BeanCounters memory controller, or use either of them as the resource-control portion of a virtual server system. - the additional kernel footprint of any of the competing resource management systems is substantially reduced, since it doesn't need to provide process grouping/containment, hence improving their chances of getting into the kernel This patch: Add the main task cgroups framework - the cgroup filesystem, and the basic structures for tracking membership and associating subsystem state objects to tasks. Signed-off-by: Paul Menage <menage@google.com> --- Documentation/cgroups.txt | 526 ++++++++++++ include/linux/cgroup.h | 214 +++++ include/linux/cgroup_subsys.h | 10 include/linux/magic.h | 1 include/linux/sched.h | 34 init/Kconfig | 8 init/main.c | 3 kernel/Makefile | 1 kernel/cgroup.c | 1199 +++++++++++++++++++++++++++++ 9 files changed, 1995 insertions(+), 1 deletion(-) diff -puN /dev/null Documentation/cgroups.txt --- /dev/null +++ a/Documentation/c…
creator: Paul Menage
date: 2007-09-17T21:03:08-00:00