[SQU] File system filling up and deleting files.

From: Ian Mortimer <ian@dont-contact.us>
Date: Mon, 30 Oct 2000 11:47:24 +1000

Apologies if this question has been answered before but I couldn't
find it in the archives.

Tru64 Unix 4.0F, squid 2.3.STABLE3 with the "storeExpiredReferenceAge"
patch applied. The cache is on a 2GB disk (UFS).

With the cache_dir limited to 1.5GB the disk was filling up to 100%.
I reduced the size to 1.4GB, 1.3GB then 1.2GB but it's still sitting
at about 90%. (The swap.state file is < 7MB).

First question: shouldn't squid keep closer to the limit set
in the cache_dir directive?

Second question: when the cache fills up what's the best way to
free some space? I thought of doing something like:

   find cache -type f -mtime +7 -exec rm -f {} \;

and if necessary reduce the number of days to 6, 5, ... until enough
space is freed. But won't that leave the swap.state inconsistent with
what's on the disk?

Thanks
Ian

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Sun Oct 29 2000 - 18:49:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:02 MST