Re: [squid-users] cache_dir not distributed evenly

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 13 Aug 2004 17:36:30 +0200 (CEST)

> On 12.08 15:03, James Zhao wrote:
>> I am running squid-2.3STABLE3 on solaris; the cache_dir is setup like this:
>>
>> cache_dir ufs /opt/squid-2.3.STABLE3/cache 1000 16 256
>>
>> But when I am looking at the cache directory, the cached objects are not
>> distributed evenly among the subdirectories, almost all of them are under 00
>> subdirectory:
>>
>> # cd /opt/squid-2.3.STABLE3/cache
>> # du -sk *
>> 961274 00
>> 2088 01

>> Why is that? What algorithm does squid use to store the cached objects?

This is normal.

Squid only uses as many subdirectories as it needs for the given size. If
you speficy too many subdirectories then all the excess directories will
be empty.

Regards
Henrik
Received on Fri Aug 13 2004 - 09:36:33 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT