httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Edmundsson <ni...@acc.umu.se>
Subject Re: mod_cache responsibilities vs mod_xxx_cache provider responsibilities
Date Wed, 20 Sep 2006 08:12:39 GMT
On Mon, 18 Sep 2006, Brian Akins wrote:

> Graham Leggett wrote:
>
>> I have not seen inside the htcacheclean code, why is the code reading the
>> headers? In theory the cache should be purged based on last access time,
>> deleted as space is needed.
>
> Everyone should be mounting cache directories noatime, unless they don't care 
> about performance...

Actually, cache on xfs mounted with atime doesn't seem to be a 
performance killer oddly enough... Our frontends had no problems 
surviving 1k requests/s during the latest mozilla-update-barrage. 
Other mirrors had problems, so it seems we ended up with taking the 
majority of the load...

That said: yes, noatime is quicker but if you want to be able to clean 
your cache often (think new linux distro release which quickly fills 
up the cache with new contents) atime+fs traversal is a better 
combined solution than having to open/read every header.


/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se      |     nikke@acc.umu.se
---------------------------------------------------------------------------
  That's not a bug. It's supposed to do that.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Mime
View raw message