On Sat, 20 Oct 2007, Robert Klemme wrote:

>> Some time ago I wrote a Mongrel variation that used fork() on incoming
>> requests instead of spawning a thread.  Throughput on it was lousy,
>> comparatively.  Somewhere around an order of magnitude worse than using
>> Ruby threads.
>
> Did you fork for every request?  If so then it seems there might be a
> more optimal solution (starting worker processes and then sending off
> requests to them via DRb for example).

Yeah.  I was just exploring the idea of memory management through fork(). 
Starting worker processes and distributing requests to them is 
essentially what is happening when one makes a cluster of mongrels through 
one of the available clustering solutions.


Kirk Haines