httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@devsys.jaguNET.com>
Subject Re: MMAP support for APR
Date Fri, 15 Oct 1999 20:54:42 GMT
Tony Finch wrote:
> 
> This server does some really cool things with mmap: It maintains a
> cache of chunks of mmapped files that is tuned to the available memory
> in the machine and has an LRU replacement strategy to approximate the
> kernel's page replacement strategy. It uses auxiliary processes to
> peek at the pages of the mmap (and therefore block while they are read
> in) so that the main server doesn't block. If Dean's idea of a
> select-loop-based MPM happens then this could be very handy (even if
> the select loop is hidden inside some userland threading library).
> 
> >Read a section from an mmap'd file.  Start at startpos and read len
> >bytes. With startpos set to 0 and len set to -1 try to read entire
> >file, checking the size of the buffer.
> 

This is sounding like something that would be nigh-impossible to
implement in shmget(). In fact, you'd need to implement mmap() to
do that. :)
-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
                "Are you suggesting coconuts migrate??"

Mime
View raw message