[peruser] Patch for busy servers

Marcelo Coelho marcelo at tpn.com.br
Tue Jan 4 08:12:59 MST 2011


I've made a few changes, so here is another update (v4). Probably the last, for while. :-)

Changes (from RC2):

* (v4) Code cleanup
* (v4) Performance: childs are started in ~25ms, 40 times faster than in RC2 (~1000ms)
* (v4) Bug fixed: now checking if total_processors is 1 (first access) to start StartProcessors
* (v3) Performance: new child type (CHILD_TYPE_RESERVED) to avoid collision (2 childs trying to get the same free slot)
* (v3) Bug fixed: fixed a bug in RC2, wait_timeout was always 0, never sleeping to wait for new workers.
* (v2) Performance: StartProcessors, new configuration directive to control the number of child processors per vhost at startup
* (v2) Performance: childs are started in ~50ms, 20 times faster than in RC2 (~1000ms)
* (v1) Performance: faster to lookup for free slots (this is important on busy servers, with many virtual hosts)
* (v1) Performance: faster to count processors, one single loop counts all processors
* (v1) Bug fixed: bug when MinSpareProcessors is set to 0 (now all workers processes are killed when idle_timeout is reached)
* (v1) Bug fixed: Free-up slots when a WORKER or PROCESSOR unexpectedly dies


Patch from RC2:

Full patch from vanilla Apache 2.2.17:

Marcelo Coelho
marcelo at mco2.com.br

More information about the Peruser mailing list