httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Edmundsson <ni...@acc.umu.se>
Subject [PATCH] mod_disk_cache working LFS (filecopy)
Date Tue, 26 Sep 2006 08:52:18 GMT

This patch depends on "mod_disk_cache LFS-aware config" submitted 
earlier and is for trunk.

It makes caching of large files possible on 32bit machines by:

* Realising that a file is a file and can be copied as such, without
   reading the whole thing into memory first.
* When a file is cached by copying, replace the brigade with a new one
   refering to the cached file so we don't have to read the file from
   the backend again when sending a response to the client.
* When a file is cached by copying, keep the file even if the client
   aborts the connection since we know that the response is valid.
* Check a few more return values to be able to add "successfully" in
   the appropriate places above.

The thing is mildly tested, but it's a subset of our much larger 
patchset that's been in production since June.

I'm able to get a 4.3GB file from a 32bit machine with 1GB of memory 
using mod_disk_cache, and the md5sum is correct afterwards. The old 
behaviour was eating all the address space/memory and segfault.

I'll attach the thing to bug #39380 as well.


/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se      |     nikke@acc.umu.se
---------------------------------------------------------------------------
  "Great thing about being a Slayer? Kicking ass is comfort food." - Buffy
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mime
View raw message