pthread_create is failing with a return value EAGAIN

Prasad A Tunga pratunga@in.ibm.com
Fri Mar 15 07:06:00 GMT 2002


Hi,

My application fails because pthread_create is failing with a return value
11 (EAGAIN)
after creating many threads.This is basically a CORBA application.
I'm running this on a Linux IA64 RedHat 7.2 m/c with 2.4.9 kernel and a
glibc version
of 2.2.4-19.3 The problem occurs after creating around 700 threads.
Also iam sure that we are not hitting PTHREAD_THREADS_MAX limit which is
1024.
To make sure, i even compiled glibc with higher PTHREAD_THREADS_MAX.But
still
the problem persists.
Also there was no shortage of memory at that instant.
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..?

regards
Prasad





More information about the Libc-alpha mailing list