Re: [SQU] First and second level subdirectories in cache

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 18 Dec 2000 22:41:54 +0100

Ilker Gokhan wrote:
>
> From Release-Notes-1.1:
>
> given:
> DS = amount of 'cache_swap' / number of 'cache_dir's
> OS = avg object size = 20k
> NO = objects per L2 directory = 256
>
> calculate:
> L1 = number of L1 directories
> L2 = number of L2 directories
>
> such that:
> L1 x L2 = DS / OS / NO
>
> L2 = 256 but some of OS performs better using another value..So you
> can calculate L1 value...
>
> Best regards,
> Ilker G.

L2 tells the value of NO in the calculation above as well as the number
of L2 directories. So the calculation for L1 becomes:

  L1 = DS / OS / L2 / L2

Average object size is a lot smaller today. A safer bet is 8-10K (common
figure is 13K I think, but it is wise to have a little margin here..)

/Henrik

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Dec 18 2000 - 14:46:18 MST

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