httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <>
Subject Re: OSDLab projectL Accept() locking on large (6+ CPU) boxes
Date Tue, 24 Jul 2001 18:32:25 GMT
Aaron Bannert wrote:

>Hi Dirk,
>I realize that the OSDlab is [primarily] linux machines, but something
>that you might want to look into on Solaris with larger-parallel
>machines is the pthread_setconcurrency() call, which AFAIK is not
>being called anywhere in httpd or apr.
>I quoth from the (Solaris 5.8) man page:
>     Unbound threads in a process may or may not be  required  to
>     be  simultaneously active. By default, the threads implemen-
>     tation ensures that  a  sufficient  number  of  threads  are
>     active  so  that  the process can continue to make progress.
>     While this conserves system resources, it  may  not  produce
>     the most effective level of concurrency.
>My interpretation of this is that by default on solaris, pthreads remain
>a wholly userspace entity (ie they multiplex one LWP) unless we give a
>hint to the OS for how many LWPs we'd like to be able to assign to our
>userspace threads.
Are you able to observe this effect experimentally too?  E.g., if
you run the threaded MPM on Solaris, does it use just one LWP per


View raw message