httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <stodd...@raleigh.ibm.com>
Subject [PATCH] mod_mmap_static hacking
Date Fri, 04 Feb 2000 19:48:03 GMT
I've hacked mod_mmap_static to cache file handles on Windows NT. Most of the
work should be applicable to any platform that supports the sendfile() API.

First off, I am NOT proposing we commit this. I'm just sharing some of my
hacking with the list for those who may be interested. As I get time, I plan
to polish this up to the point where I can commit it. It has lots of
problems, like caching file handles in the parent process (where they are
never used :-), replicating code from the core_translate hook, unstructured
tweaking of the internals of the BUFF structure, etc.

Apache 1.3 on Windows NT V4 SP5 will serve a 500 byte file at 400 requests
per second (no-keep-alive) on my 400Mhz PII. Apache 2.0 w/o caching (and
with TransmitFile) ups the number to around 490. Apache 2.0 with file handle
caching ups the number to around 730. The difference in performance between
Apache 1.3 and Apache 2.0 increases as the file size increases.

________________________________________________
Bill Stoddard stoddard@raleigh.ibm.com

Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>




Mime
View raw message