Re: [squid-users] Only 00 directory used in cache_dir

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Thu, 4 Oct 2001 15:24:31 +1000 (EST)

Hi,

On Thu, 4 Oct 2001, Adam Carter wrote:

> Hi All,
>
> Setup is patched Mandrake 8.0, reiserfs, 2.4.STABLE1 with:
> cache_dir ufs /var/cache/squid 400 32 256
>
> Here's my problem - the cache wont use any more than ~129MB. For some reason
> it is only using the /var/cache/squid/00 directory to write files. Under
> this 00 directory are another 256 directories all of which contain 256
> objects, so I suspect its being limited by the number of objects.

The default averag object size is 13kBytes. That means each 2nd level
directory can hold 256 * 13 /1024 = 3.3MBytes. There are 256 of these
directories for each top level directory. Therfore each top level
directory can hold 256 * 3.3 = 850MBytes. This is twice the size of your
entire cache. That's why squid has only partially filled /00 and none of
the other top level directories.

Regarding your other question as to why only 129MBytes out of 400MBytes,
I'm not sure. How old is the cache? What is the average age of the
objects? Maybe your users don't hit enough sites to warrant storing any
more than 129MBytes. I don't think it can be the number of allowable
objects cos that became dynamic in 2.3 or somewhere around there. You need
to run the client program and spit out some info, eg

        /path/to/squid/bin/client mgr:info
        /path/to/squid/bin/client mgr:storedir

Show us what that says.

Colin
Received on Wed Oct 03 2001 - 23:24:37 MDT

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