httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: mod_file_cache performance
Date Mon, 02 Jul 2001 23:38:36 GMT
On Mon, 2 Jul 2001, Cliff Woolley wrote:

> > > static file local threaded:
> > >
> > >           No keepalives                 Keepalives
> > >           --------------------------    ----------------------------
> > > no cache  154.54 req/s  879.06 KB/s     2432.63 req/s  13924.84 KB/s
> > > CacheFile 155.53 req/s  881.38 KB/s     2556.91 req/s  14581.54 KB/s
> > > MMapFile  155.03 req/s  878.55 KB/s     2660.11 req/s  15170.08 KB/s
> >
> > so forgive my ignorance of apache 2.0... do any of these represent
> > sendfile() without userland caching?  'cause that should be the fastest
> > static file serving method on linux 2.4.x.
>
> The first one does.  I ran each test a few times to make sure that the
> results came out more or less the same each time, which they did.  (I'm on
> 2.4.3, if that matters.)

I should have said that the first row "no keepalives" column represents
sendfile() with no userland caching.  The "keepalives" column does not
represent sendfile().  I had to go back and check the source to be sure.
=-)

For keepalive requests, since this particular file is less than
AP_MIN_BYTES_TO_WRITE in size, the core_output_filter will read in the
file and hang on to it to try to send at the same time as the response to
the next request using writev().  That's the whole bug we were trying to
solve with this latest round of patches to mod_file_cache.

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message