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


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

pthread_create is failing with a return value EAGAIN



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




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