* RE: Re: max number of threads on a system
@ 2002-03-22 18:36 joeja
2002-03-23 3:19 ` Bill Davidsen
0 siblings, 1 reply; 2+ messages in thread
From: joeja @ 2002-03-22 18:36 UTC (permalink / raw)
To: davidel, davidsen, davids, linux-kernel
> > > On Thu, 21 Mar 2002 20:05:39 -0500, joeja@mindspring.com wrote:
> > > >What limits the number of threads one can have on a Linux system?
> > >
> > > Common sense, one would hope.
I have none of that ;-). No this is actually a test. The only reason I'm even looking into pthreads is portability. While this may be an excessive amount of threads if the box has he capacity then I'd want to take advantage of that for batch jobs.
> > $ ulimit -u
unlimited
> /proc/sys/kernel/threads-max is the system limit. And "locks up" is odd
> unless the application is really poorly written to handle errors. Should
> time out and whine ;-)
This file shows 8192.
>Around 250 was the old limit for max user processes ( non root ), if i
>remember well.
In 2.4.17 that seems to be what I'm hitting. Actually it is 254.
How long before it times out?
thread number = 254 rc = 0
On thread 255 it does error out, however if I call exit then the program hangs.
This hangs:
if (rc > 0) { return -1;}
This hangs:
if (rc > 0) { exit(-1);}
This works:
if (rc > 0) { goto EXIT ;}
where exit is:
EXIT:
calls pthread_join();
It would seem that the functionality and behavior of threads on Sun is different from that of Linux.
Joe
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
^ permalink raw reply [flat|nested] 2+ messages in thread* RE: Re: max number of threads on a system
2002-03-22 18:36 Re: max number of threads on a system joeja
@ 2002-03-23 3:19 ` Bill Davidsen
0 siblings, 0 replies; 2+ messages in thread
From: Bill Davidsen @ 2002-03-23 3:19 UTC (permalink / raw)
To: joeja; +Cc: davidel, davids, linux-kernel
On Fri, 22 Mar 2002, joeja@mindspring.com wrote:
> It would seem that the functionality and behavior of threads on Sun is
> different from that of Linux.
You probably want to try NGPT, kernel 2.4.19-pre3 and later have the
kernel patches, and the new library is available from IBM. I don't know
about the limits, but the overall functionality should be closer.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-23 3:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-22 18:36 Re: max number of threads on a system joeja
2002-03-23 3:19 ` Bill Davidsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®