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

Reply via email to