This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: pthread_create is failing with a return value EAGAIN
- From: Wolfram Gloger <Wolfram dot Gloger at dent dot med dot uni-muenchen dot de>
- To: pratunga at in dot ibm dot com
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 15 Mar 2002 16:12:48 +0100 ("MET)
- Subject: Re: pthread_create is failing with a return value EAGAIN
- References: <OFCACE204E.22D17C2E-ON65256B7D.005248BC@in.ibm.com>
First, sending this once would be enough..
> of 2.2.4-19.3 The problem occurs after creating around 700 threads.
700 threads! It would be best to fix your code so you don't require
that many threads. (Unless of course you have 512 CPUs.)
> So we must definitely be hitting someother kernel limits.
> Also when the pthread_create call fails, the shell is not able to
> fork any other processes.Even a simple 'ls' would show
>
> ksh: cannot fork - try again.
>
> Can you please let me know how to overcome this problem..?
You're probably hitting the 'max user processes' limit - it applies to
threads as well. Try 'ulimit -a' to see it (but I thought Linux-2.4
basically had no such upper limit any more).
Regards,
Wolfram.