httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Maintenance of mod_proxy and async i/o
Date Sun, 30 Apr 2000 01:31:56 GMT
I don't know specifically what dean was proposing, but my proposal is
something like this.  With mod_proxy you can eleviate the strain of
having lots of big fat apache proccesses laying around.  Now you have
smaller ones, but the underlying problem of one process for each
request still exists... so there is the context switching overhead,
and there is the memory consumption of these processes.

With async i/o basically a process fills the kernel buffer then moves
on.  (Well, basically, this is a oversimplification)  So a single
thread can handle a lot of requests... several hundred, if not over a
thousand with a tweaked kernel.  (under linux, I'm not familiar with
win32, or other unixen)  What I'm proposing specifically would have
several different methods by which to send data, for different
platforms, etc.  Select could be the catch all, but signal queues
could be used on the platforms that are capable of that.

Also I got to thinking about it..., and this really doesn't have to be
"part of" mod_proxy.  Rather a module that any other module/core could
connect to do it's "dirty work".

Sorry for the late response.., I checked the list several times but my
response didn't get in for some time it seems :-).  Anyway, I'll be
more on top of this in the future.


On Fri, Apr 28, 2000 at 10:13:11AM -0400, Bill Stoddard wrote:
> > wrote:
> > >
> > >I worked with Zach Brown on phhttpd, and it uses a really cool async
> > >i/o model for pushing bits that's really fast
> >
> > Dean has been advocating an MPM that handles bulk data transfers with
> > a thread dedicated to sitting in a select loop doing just that
> Could you elaborate? I recall the discussion a while back but I didn't really 'get it'
> the time.
> I am familier with async io and Windows NT iocompletion ports and I think I have an idea
> of how to get async network io going in the Windows MPM. How would Dean's proposal work?
> Bill

View raw message