Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* How to Raise maxuthreads quota (256)
@ 2001-03-22 22:04 francois reygagne
  2001-03-23 13:35 ` Dave Butenhof
  0 siblings, 1 reply; 2+ messages in thread
From: francois reygagne @ 2001-03-22 22:04 UTC (permalink / raw)


I run an application test on linux which spawn 200 volatile threads per
second
during 5 minutes to make a traffic jam to the server. On Linux, its
works well .

But on OSF  I receive this warning message
   WARNING -- process concurrency may be reduced:
              number of blocked threads exceeds maxuthreads quota (256)

SYSTEM=OSF1 V5.0 1094 alpha

How to raise the max of threads per process or for the workstation.

Fran�ois REYGAGNE. Software Architect.
opt[e]way S.A., 2881 route des Cr�tes, BP308
06906 Sophia Antipolis Cedex, FRANCE
www.opteway.com





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to Raise maxuthreads quota (256)
  2001-03-22 22:04 How to Raise maxuthreads quota (256) francois reygagne
@ 2001-03-23 13:35 ` Dave Butenhof
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Butenhof @ 2001-03-23 13:35 UTC (permalink / raw)


francois reygagne wrote:

> I run an application test on linux which spawn 200 volatile threads per
> second
> during 5 minutes to make a traffic jam to the server. On Linux, its
> works well .
>
> But on OSF  I receive this warning message
>    WARNING -- process concurrency may be reduced:
>               number of blocked threads exceeds maxuthreads quota (256)
>
> SYSTEM=OSF1 V5.0 1094 alpha
>
> How to raise the max of threads per process or for the workstation.

I argued strongly against this annoying message, but lost. At least it
only fires once.

What this message means goes into the depths of the Tru64 UNIX 2-level
scheduling implementation. We work hard to maintain the maximum process
concurrency, with one "kernel entity" for each available processor. When a
thread blocks in the kernel (e.g., for I/O), the kernel generates an
"upcall" on a "replacement thread" so that the user-mode scheduler can
continue to utilize the abandoned processor. However, if those blocked
threads remain blocked for a substantial period of time, the quota may
prevent the kernel from creating additional kernel entities for you.
That's when it generates this message. You now may have POSIX threads in
the process that are ready to run, but cannot until some I/O completes.

You have 254 threads simultaneously blocked in the kernel. That is not an
efficient or scalable design. If you really want to do this, you need a
larger thread quota. On Linux (or any "one to one" kernel thread
implementation) you can't even create more threads than can simultaneously
block, so you would never see something like this. On the other hand, in
Linux you can't even create more threads than your "kernel entity" quota;
and most of the time, they DON'T all need to block simultaneously. One can
argue persuasively that either strategy is better, but reality is never
that simple.

Of course, you can always create all your threads with system contention
scope on Tru64 UNIX (pthread_attr_setscope (attr, PTHREAD_SCOPE_SYSTEM)).
That'll simply fail when you've exhausted your quota of kernel threads,
and you won't see this symptom. It'll still be a bad application design,
but you won't need to notice. ;-)

/------------------[ David.Butenhof@compaq.com ]------------------\
| Compaq Computer Corporation              POSIX Thread Architect |
|     My book: http://www.awl.com/cseng/titles/0-201-63392-2/     |
\-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-23 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-22 22:04 How to Raise maxuthreads quota (256) francois reygagne
2001-03-23 13:35 ` Dave Butenhof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox