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

Bug#703617: ditto



Hi,

Looks like people have been noticing this for a while now, e.g.:

https://serverfault.com/questions/320767/apaches-htcacheclean-doesnt-scale-how-to-tame-a-huge-apache-disk-cache

Even when normal find(1) can stroll through the directory within minutes,
htcacheclean just can't seem to keep up.

My current workaround seems to be:

% cat /etc/cron.d/local-htcacheclean
0 0 * * * www-data logger -t /etc/cron.d/local-htcacheclean $(find /var/cache/apache2/mod_cache_disk -mtime +30 -type f -print -delete | wc -l)
0 1 * * * www-data logger -t /etc/cron.d/local-htcacheclean $(find /var/cache/apache2/mod_cache_disk -mtime +30 -type d -print -delete 2>/dev/null | wc -l)

Clearly far from perfect, but at least the inode count doesn't risk causing
write errors to the partition.

Please fix it. TIA.

-- 
Josip Rodin


Reply to: