|
|
Subscribe / Log in / New account

cgroup: add isolation_root flag, poor man's namespaces for cgroups

From:  Witold Krecicki <wpk@culm.net>
To:  Paul Menage <paul@paulmenage.org>, Li Zefan <lizf@cn.fujitsu.com>, containers@lists.linux-foundation.org
Subject:  [PATCH 0/6] cgroup: add isolation_root flag, poor man's namespaces for cgroups
Date:  Fri, 30 Sep 2011 13:36:19 +0200
Message-ID:  <1317382585-12172-1-git-send-email-wpk@culm.net>
Cc:  linux-kernel@vger.kernel.org, Witold Krecicki <wpk@culm.net>
Archive‑link:  Article

This patchset adds namespace-like feature to the existing cgroup system.
When used with a container system (eg. lxc) it allows containers to have
its own cgroup hierarchy, enabling use of 'systemd' (using cgroups) inside 
a container. 

The behaviour is not changed at all when isolation_root flag is not set, 
no additional overhead is added.

I'm really not sure if the 'mount' part (patch 5) is done correctly, please 
review carefully.

Witold Krecicki (6):
  cgroup: add cgroup.isolation_root flag entry to the cgroup filesystem
  cgroup: make 'cgroup_is_descendant' function take cgroup as a
    'descendant of' argument
  cgroup: add 'root' parameter to cgroup_path function
  cgroup: disallow task from leaving cgroup isolated root
  cgroup: make cgroup filesystem mounts performed by task inside
    isolation root see its isolation root as top cgroup
  cgroup: documentation of isolation_root cgroup flag

 Documentation/cgroups/cgroups.txt |   20 +++++++-
 block/blk-cgroup.c                |    2 +-
 include/linux/cgroup.h            |   12 +++-
 kernel/cgroup.c                   |  102 +++++++++++++++++++++++++++++++-----
 kernel/cpuset.c                   |    2 +-
 kernel/sched_debug.c              |    2 +-
 mm/memcontrol.c                   |    6 +-
 7 files changed, 120 insertions(+), 26 deletions(-)

-- 
1.7.4.1



Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds