Re: [squid-users] Cache_dir disk problems with more info

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Wed, 24 Oct 2001 08:58:33 +1000 (EST)

Hi,

On Tue, 23 Oct 2001, Henrik Johansson wrote:

> Sending this again with more info (didn't have time to enter it the last
> time)
>
> Having some problems with one of our proxyservers.
> squid version is 2.2.STABLE4.

It's a dumb question but I have to ask, are you sure that's not 2.3S4?
This version has a problem with ever-growing cache.

>
> The cachedir is located on a seperate disk (23Gb) and cache_dir is:
> cache_dir /data/cache 16000 256 2048

This is totally unrelated to your problem, but these are EXTREME values
for the cache size. At the average object size of 13kBytes, 256 x L1 and
2048 x L2 would serve a cache 1,703,936 MBytes (yes, 1.7 TBytes) in size.
The default parameters (16, 256) can support a cache of 13,312 MBytes. For
a 16GByte cache I'd simply change the line to be:

        cache_dir /data/cache 16000 20 256

That gives 20 * 256 * 256 files each of 13kByes = 16640 Mbytes. With your
current parameters you'll probably find only top-level directory 00 being
used.

Colin

--
Colin Campbell
Unix Support/Postmaster/Hostmaster
CITEC
+61 7 3006 4710
Received on Tue Oct 23 2001 - 16:58:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:05 MST