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: sasha at mysql dot com
- Subject: Re: Slow pthread_create() under high load
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 25 Mar 2000 10:33:40 -0800
- Cc: 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: <Pine.LNX.4.10.10003242056100.14602-100000@ashi.FootPrints.net> <38DC9F03.5CF31DB4@mysql.com>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
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?
If you want to see this changes get the kernel changes in place.
There are various patches floating around which combined will allow a
correct and fast implementation. But they were not added.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------