This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: NPTL: effect of not using CLONE_THREAD in pthread_create
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Inti Glez <inti dot gonzalez_herrera at irisa dot fr>, libc-help at sourceware dot org
- Date: Fri, 29 Nov 2013 15:46:45 -0500
- Subject: Re: NPTL: effect of not using CLONE_THREAD in pthread_create
- Authentication-results: sourceware.org; auth=none
- References: <5298CDB9 dot 2010100 at irisa dot fr>
On 11/29/2013 12:24 PM, Inti Glez wrote:
> Hello,
>
> I was trying to avoid the use of CLONE_THREAD in Linux. Why? Because
> of cgroups. In short, I want to limit resource consumption per
> threads. Nevertheless, in the current implementation of cgroup you
> can only specify resource constraint on per Thread Group basis. I
> though that modifying how glibc creates threads in Linux should be
> enough.
You can't avoid the use of CLONE_THREAD. Removing CLONE_THREAD will
break the NPTL thread implementation which relies on the semantics
of CLONE_THREAD for several reasons including signals.
You should instead spend your efforts enhancing cgroup.
Cheers,
Carlos.