[Devel] Re: [PATCH v4 0/2] cgroups: implement moving a threadgroup's threads atomically with cgroup.procs
Andrew Morton
akpm at linux-foundation.org
Tue Aug 3 12:58:27 PDT 2010
On Fri, 30 Jul 2010 19:56:49 -0400
Ben Blum <bblum at andrew.cmu.edu> wrote:
> This patch series implements a write function for the 'cgroup.procs'
> per-cgroup file, which enables atomic movement of multithreaded
> applications between cgroups. Writing the thread-ID of any thread in a
> threadgroup to a cgroup's procs file causes all threads in the group to
> be moved to that cgroup safely with respect to threads forking/exiting.
> (Possible usage scenario: If running a multithreaded build system that
> sucks up system resources, this lets you restrict it all at once into a
> new cgroup to keep it under control.)
I can see how that would be useful. No comments from anyone else?
patch 1/2 makes me cry with all those ifdefs. Maybe helper functions
would help, but not a lot.
patch 2/2 looks very complicated.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list