httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory (Grisha) Trubetskoy" <gri...@apache.org>
Subject Re: mpm_query confusion (prefork.c bug?)
Date Thu, 16 Oct 2003 04:23:31 GMT

On Wed, 15 Oct 2003, Gregory (Grisha) Trubetskoy wrote:

> In prefork.c, max procs appears to be the value of
> AP_MPMQ_MAX_DAEMON_USED, while AP_MPMQ_MAX_DAEMON is the ServerLimit
> (which does not take into account MaxClients). So given prefork as an
> example, the following should work (pseudo code):
>
> threads, daemons = 0
>
> if IS_THREADED
> 	threads = MAX_THREADS
>
> if IS_FORKED
> 	daemons = MAX_DAEMON_USED
>
> total = threads * daemons
>

Before someone else corrects me, threads and daemons above should of
course default to 1, not 0, because x * 0 is 0 always, but everything else
is still true.

Grisha

Mime
View raw message