public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] cgroups: Start a basic rlimit subsystem
@ 2011-06-19 23:51 Frederic Weisbecker
  2011-06-19 23:51 ` [RFC PATCH 1/4] cgroups: Allow a cgroup subsys to reject a fork Frederic Weisbecker
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Frederic Weisbecker @ 2011-06-19 23:51 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Paul Menage, Li Zefan, Johannes Weiner,
	Andrew Morton

This starts a basic rlimit cgroup subsystem with only the
equivalent of RLIMIT_NPROC yet. This can be useful to limit
the global effects of a local fork bomb for example (local
in term of a cgroup).

The thing is further expandable to host more general resource
limitations in the scope of a cgroup.

Frederic Weisbecker (4):
  cgroups: Allow a cgroup subsys to reject a fork
  cgroups: Add res_counter_write_u64() API
  cgroups: New resource counter inheritance API
  cgroups: Add an rlimit subsystem

 include/linux/cgroup.h        |    9 ++-
 include/linux/cgroup_subsys.h |    8 ++
 include/linux/res_counter.h   |    4 +
 init/Kconfig                  |    6 ++
 kernel/Makefile               |    1 +
 kernel/cgroup.c               |   13 +++-
 kernel/cgroup_freezer.c       |    6 +-
 kernel/cgroup_rlim.c          |  142 +++++++++++++++++++++++++++++++++++++++++
 kernel/fork.c                 |    5 +-
 kernel/res_counter.c          |   46 ++++++++++++--
 10 files changed, 225 insertions(+), 15 deletions(-)
 create mode 100644 kernel/cgroup_rlim.c

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-07-06  0:43 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-19 23:51 [RFC PATCH 0/4] cgroups: Start a basic rlimit subsystem Frederic Weisbecker
2011-06-19 23:51 ` [RFC PATCH 1/4] cgroups: Allow a cgroup subsys to reject a fork Frederic Weisbecker
2011-06-21 17:39   ` Paul Menage
2011-06-23 13:38     ` Frederic Weisbecker
2011-06-19 23:51 ` [RFC PATCH 2/4] cgroups: Add res_counter_write_u64() API Frederic Weisbecker
2011-06-19 23:51 ` [RFC PATCH 3/4] cgroups: New resource counter inheritance API Frederic Weisbecker
2011-06-19 23:51 ` [RFC PATCH 4/4] cgroups: Add an rlimit subsystem Frederic Weisbecker
2011-06-21 17:37   ` Paul Menage
2011-06-23 13:48     ` Frederic Weisbecker
2011-06-24 22:22       ` Paul Menage
2011-06-28 17:37         ` Aditya Kali
2011-07-06  0:21           ` Frederic Weisbecker
2011-06-28 18:08   ` Aditya Kali
2011-07-06  0:43     ` Frederic Weisbecker
2011-06-20  6:33 ` [RFC PATCH 0/4] cgroups: Start a basic " Li Zefan
2011-06-20 19:11   ` Frederic Weisbecker
2011-06-21  8:09     ` Li Zefan
2011-06-21 16:18       ` Frederic Weisbecker
2011-06-21 17:08 ` Paul Menage
2011-06-23 13:30   ` Frederic Weisbecker
2011-06-24 22:18     ` Paul Menage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox