This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Support more than 1024 threads


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]