You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Harrie Hazewinkel <ha...@covalent.net> on 2001/04/17 10:41:34 UTC

Looking into the MPM stuff.

HI,

I noticed something funny with the pthread/threaded MPM.
-------  From the configuration file
----------------------------------------
# pthread MPM
# StartServers ......... initial  number of server processes to start
# MaxClients ........... maximum  number of server processes allowed to
start
# MinSpareThreads ...... minimum  number of worker threads which are
kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are
kept spare
# ThreadsPerChild ...... constant number of worker threads in each
server process
# MaxRequestsPerChild .. maximum  number of requests a server process
serves
<IfModule threaded.c>
StartServers         3
MaxClients           8
MinSpareThreads      5
MaxSpareThreads     10
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>
-----------------------------------------------------------------------------

This MPM has a constant number of worker threads in each process.

What is the use of the MinSpareThreads and MaxSpareThreads in that
case??
I would say they are useless/not used.

Harrie
-- 
phone: +39-3474932300
http://www.lisanza.net/



Re: Looking into the MPM stuff.

Posted by rb...@covalent.net.
> # pthread MPM
> # StartServers ......... initial  number of server processes to start
> # MaxClients ........... maximum  number of server processes allowed to
> start
> # MinSpareThreads ...... minimum  number of worker threads which are
> kept spare
> # MaxSpareThreads ...... maximum  number of worker threads which are
> kept spare
> # ThreadsPerChild ...... constant number of worker threads in each
> server process
> # MaxRequestsPerChild .. maximum  number of requests a server process
> serves
> <IfModule threaded.c>
> StartServers         3
> MaxClients           8
> MinSpareThreads      5
> MaxSpareThreads     10
> ThreadsPerChild     25
> MaxRequestsPerChild  0
> </IfModule>
> -----------------------------------------------------------------------------
>
> This MPM has a constant number of worker threads in each process.
>
> What is the use of the MinSpareThreads and MaxSpareThreads in that
> case??
> I would say they are useless/not used.

MinSpareThreads/MaxSpareThreads are used to determine when new processes
should be spawned.  Basically, we look at those values, and multiple by
the number of currently active processes.  Then we count the number of
active threads.  Then we compare the two values.  Just because threads are
static per child, they are still idle or busy.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------