Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Frederic Weisbecker <fweisbec <at> gmail.com>
Subject: [RFC PATCH 0/4] cgroups: Start a basic rlimit subsystem
Newsgroups: gmane.linux.kernel
Date: Sunday 19th June 2011 23:51:10 UTC (over 5 years ago)
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
 
CD: 3ms