[SGVLUG] POSIX Thread Limitation (increase?)

Dan Kegel dank at kegel.com
Fri Dec 14 12:05:46 PST 2007


On Dec 14, 2007 11:55 AM, Sean O'Donnell <sean at seanodonnell.com> wrote:
> I'm currently doing some performance testing of a multi-threaded
> application that seems to be reaching it's limit of (approx. 300) threads.
>
> I was curious if there is a way to increase the posix thread-limit
> without having to recompile the kernel or patch any libraries (such as
> glibc, which I've read is one way to do it).
>
> Can this be achieved with the 'ulimit' command? or is there a variable
> in a configuration file somewhere that I can simply modify?

http://kegel.com/c10k.html#limits.threads says there isn't
any low limit on threads, it's more likely your app is
using really big thread stacks and thus is running out
of address space.   What symptom are you running into?
- Dan


More information about the SGVLUG mailing list