Re: [squid-users] Cache distribution algorithm. Please enlighten me.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 27 May 2002 11:33:34 +0200

Joao Clemente wrote:
>
> Ok, "du -sh *" at my squid/cache folder gives me the following output
>
> 598M 00
> 606M 01
> 377M 02
> 1.1M 03
> 1.1M 04
> 1.1M 05
> 1.1M 06
> 1.1M 07
> (...)
>
> So, can someone explain me what distribution algorith is used? Is this suposed to be like this?
> It seems like when setting up squid.conf , we could say:
> "Ok, 1 want ... hmmm.. 1 Gb cached, so I'll only need 3 top directories..."

Only as many L1 directories as needed to fit the number of objects you
have cached is used.

The number of objects depends on your cache_dir size, and the actual
object size distribution. Many small objects is more than a few large
objects even if they account for the same amount of data..

Regards
Henrik
Received on Mon May 27 2002 - 03:36:43 MDT

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