Messages in this thread | | | Date | Mon, 20 Jun 2011 14:33:34 +0800 | From | Li Zefan <> | Subject | Re: [RFC PATCH 0/4] cgroups: Start a basic rlimit subsystem |
| |
Frederic Weisbecker wrote: > 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. >
As this subsystem is named "rlimit", I think we should have a bigger picture about how this subsystem will be.
For example, which of other RLIMIT_XXX can be make cgroup-aware in a meaningful way and which can't.
Another issue is, we can apply the limit of RLIMIT_NPROC as the sum of the tasks' limit in a cgroup, but some other RLIMIT_XXX can't work in this way. Take RLIMIT_NICE for example, we can apply this limit to each of the tasks in the cgroup.
| |