[RFC] Support more than 1024 threads

Jakub Jelinek jakub@redhat.com
Fri Aug 9 01:41:00 GMT 2002


On Fri, Aug 09, 2002 at 10:15:45AM +0200, Jakub Jelinek wrote:
> On Thu, Aug 08, 2002 at 03:30:36PM -0700, Ulrich Drepper wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Jakub Jelinek wrote:
> > > Is there any reason why this shouldn't work (ie. does somebody
> > > use __pthread_handles before __pthread_initialize_minimal)?
> > > Testing still in progress.
> > 
> > Well, test using gdb.  I fixed several problems in this area yesterday 
> > and before but who knows.
> 
> Works just fine (of course provided gdb is pointed
> to the right linuxthreads_db if the glibc is not installed yet).
> make check passed too.
> Will do some more checks to see whether libpthread
> memory usage increased because of this (comparing /proc/statm for this version,
> version without this patch and version with this patch but
> with PTHREAD_THREADS_MAX 1024).

These are results from hacking up linuxthreads/Examples/ex2.c, so that
it does fgetc(stdin);

95 95 79 2 0 93 16      - .bss, 16384 (this is current CVS + the patch I posted)
95 95 79 2 0 93 16      - .bss, 1024
96 96 79 2 0 94 17      - .data, 1024 (this is current CVS)

So it looks like it could make things one page better, not worse.

	Jakub



More information about the Libc-hacker mailing list