httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: mmap performance test
Date Mon, 13 Apr 1998 18:41:03 GMT
That won't help linux.  The problem is that it doesn't readahead as far on
mmap() as it does on read()... and in the example I gave the system
doesn't have enough memory to keep the entire file, so the readahead
happens all the time.  So mmap() ends up being around 1/4 the speed of


On 13 Apr 1998, Arnt Gulbrandsen wrote:

> Dean Gaudet <>
> > Folks may want to try this on their system of choice.  I'll tell you right
> > away that linux doesn't deal well with it, but work is in progress on
> > fixing it. 
> I fixed this in troll-ftpd by mmap()ing in 256k chunks instead of the
> whole file.  The change was trivial and seemed to work fairly well.
> (At least, nobody reported disastrous paging any more.)
> I can do a similar patch for apache, if anyone wants me to.  Where do
> I find zeusbench?
> --Arnt

View raw message