This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Slow pthread_create() under high load
- To: Alvin Starr <alvin at iplink dot net>
- Subject: Re: Slow pthread_create() under high load
- From: Richard Gooch <rgooch at ras dot ucalgary dot ca>
- Date: Mon, 27 Mar 2000 00:08:54 -0700
- Cc: Ulrich Drepper <drepper at cygnus dot com>, sasha at mysql dot com, Kaz Kylheku <kaz at ashi dot footprints dot net>, glibc-linux at ricardo dot ecn dot wfu dot edu, linux-kernel at vger dot rutgers dot edu, mysql at lists dot mysql dot com, monty at mysql dot com
- References: <m3em8yq4qj.fsf@localhost.localnet><Pine.OSF.4.05.10003270036160.31865-100000@caesar.iplink.net>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Alvin Starr writes:
> On 25 Mar 2000, Ulrich Drepper wrote:
>
> > sasha@mysql.com writes:
> >
> > > My guess is that clone() should return very fast to the original thread, but
> > > might take a while to return to the newly created thread, which is what is
> > > causing the problem.
> >
> > The kernel does not allow using clone() directly because some
> > additional functionality required to implement the correct POSIX
> > threads behaviour is missing. Do you think we make these things slow
> > on purpose?
>
> there is a saying I like:
> " Never attribute to malice that which can be adquatly explained by
> incompatence. "
Erm, this comment could be taken the wrong way.
> I am sure that if the next version of the thread library required a
> set of kernel patches to run effectivly then those patches would end
> up in the kernel source tree within a version or so.
Mate, where have you been? The day Linus lets user-space dictate what
goes into the kernel is the day hell freezes over. If you want a patch
to go into the kernel, you need to convince him it's a good idea.
Adding a dependency in user-space, expecting it to "force his hand",
will not help. It will probably just piss him off. Or make him laugh.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca