[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#682840: Default /etc/apache2/mods-available/disk_cache.conf is incompatible with ext3



Package: apache2.2-common
Version: 2.2.9-10
Severity: grave

Debian's default mod_disk_cache config sets

	CacheDirLength 3

which creates directories like aaa ZZZ in
/var/cache/apache2/mod_disk_cache.

There are 64^3 = 262144 possible filenames. Ext3's hardlink limit is
32000. Excluding "." and "..", mod_disk_cache can create 31998
directories in /var/cache/apache2/mod_disk_cache, and will then fail
to cache more requests:

[Wed Jul 25 06:57:08 2012] [warn] (2)No such file or directory: disk_cache: rename tempfile to varyfile failed: /var/cache/apache2/mod_disk_cache/aptmpFUtpDN -> /var/cache/apache2/mod_disk_cache/7uK/AHX/cL5/XOm/1m3/ZB2rKKA.header
[Wed Jul 25 06:57:08 2012] [warn] (2)No such file or directory: disk_cache: rename tempfile to varyfile failed: /var/cache/apache2/mod_disk_cache/aptmpnobY8U -> /var/cache/apache2/mod_disk_cache/57i/JSw/tHn/P_C/t0M/YNqPp_A.header
[Wed Jul 25 06:57:38 2012] [warn] (2)No such file or directory: disk_cache: rename tempfile to hdrsfile failed: /var/cache/apache2/mod_disk_cache/aptmpjS4Ddb -> /var/cache/apache2/mod_disk_cache/ZjF/x2o/r7Q/Yaj/k3C/4R63WZw.header
[Wed Jul 25 06:59:52 2012] [warn] (2)No such file or directory: disk_cache: rename tempfile to hdrsfile failed: /var/cache/apache2/mod_disk_cache/aptmp5GkvgP -> /var/cache/apache2/mod_disk_cache/B0H/JPO/xnj/dBX/pr0/N@a3VOg.header

Filing as grave as ext3 is still the default filesystem type (or at
least one of), and the default apache2 config should work with it.

I'd recommend using Apache's default settings instead:

	CacheDirLength 2
	CacheDirLevels 3

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature


Reply to: