RE: Re: [pthreads-devel] Per Process Thread Limi t

"Howell, David P" <[email protected]> Tue, 18 Jun 2002 07:11:40 -0700
Newsgroups gmane.linux.ngpt.user
Message-ID <[email protected]>
I guess I'm a bit confused. Everything that you say about recompiling GLIBC
would work and is necessary for Linuxthreads to go beyond 1024 threads, but
with the stock GLIBC 2.2.4 (RH 7.2) and NGPT 1.9.3 installed (including the 
kernel patches) I can go well beyond 1024 threads, the 'test_str02 -l' and 
'test_str03 -d 6' stress programs included in the 1.9.3 tarball do this.

BTW, what is the latest on an available Java runtime that works with NGPT?

Dave Howell

-----Original Message-----
From: Hunt, Bryan [mailto:[email protected]]
Sent: Tuesday, June 18, 2002 3:28 AM
To: 'Aron Rubin'; [email protected]
Subject: RE: [pthreads-users] Re: [pthreads-devel] Per Process Thread
Limi t



When you recompile glibc from source having modified a couple of #define
statements. 
Plus you will need to change a define in the kernel and recomplile it as
well. 
If you are having java related problems (running out of threads etc) it
would be an idea
to try and find a webserver that works with java 4 and uses non blocking
io... 
just a guess .... my advice though, find another way arround it because
doing all that
isn't worth the effort ( i did it and still cant get past 1400 java threads
per vm )


--B


-----Original Message-----
From: Aron Rubin [mailto:[email protected]]
Sent: 17 June 2002 21:46
To: [email protected];
[email protected]
Subject: [pthreads-users] Re: [pthreads-devel] Per Process Thread Limit


Then will I be unable to go beyond 1024 with non NGPT patched kernels?

Aron

Howell, David P wrote:
>>From my test/development system:
> - The supported kernels are called out in INSTALL in the tarball. I'm
>   using linux-2.4.19-pre8 with the 2.4.19-pre8 futex patch, prior to 
>   the release of NGPT 1.9.3. 
> - I'm running NGPT 1.9.2.
> - The distribution I use is Red Hat 7.2 with the later kernel
> At this point I would use ngpt-1.9.3 with the latest kernel patches.
> 
> Dave Howell
> 
> -----Original Message-----
> From: Aron Rubin [mailto:[email protected]]
> Sent: Monday, June 17, 2002 4:00 PM
> Cc: [email protected];
> [email protected]
> Subject: Re: [pthreads-devel] Per Process Thread Limit
> 
> 
> Do you know what kernels/distributions/patches with this work with?
> 
> Aron
> 
> Howell, David P wrote:
> 
>>This is limited by the virtual memory space. I've spawned 27K threads with
> 
> 
>>'test_str02 -l' on my Linux box with 1G memory and 128M swap. 
>>
>>The tunables to lower the thread stack size can extend this, default is
> 
> 64K;
> 
>>if you can safely lower it for your threads it gives more space, I've used
> 
> 
>>16K before for a high thread count process that needed more threads. Use
> 
> the
> 
>>'export DEFAULTTHREADSTACKSIZE=16' for 16K default thread stacks, or use
> 
> the
> 
>>pthread_attr_stacksize() attribute for the threads.
>>
>>Dave Howell
>>
>>-----Original Message-----
>>From: Aron Rubin [mailto:[email protected]]
>>Sent: Monday, June 17, 2002 3:06 PM
>>To: [email protected];
>>[email protected]
>>Subject: [pthreads-devel] Per Process Thread Limit
>>
>>
>>Does NGPT allow for a higher per process thread limit. Right now it 
>>seems the highest number of threads possible per process is 1024.
>>
>>Aron
>>
>>_______________________________________________
>>pthreads-devel mailing list
>>[email protected]
>>http://www-124.ibm.com/developerworks/oss/mailman/listinfo/pthreads-devel
> 
> 
> 
> _______________________________________________
> pthreads-devel mailing list
> [email protected]
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/pthreads-devel


_______________________________________________
pthreads-users mailing list
[email protected]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/pthreads-users
_______________________________________________
pthreads-users mailing list
[email protected]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/pthreads-users