Re: [squid-users] L1 & L2 Directories in Chache settings

From: <hno@dont-contact.us>
Date: Tue, 30 Oct 2001 15:07:54 +0100

Torsten.Lange@GECITS-EU.COM wrote:
>
> i use this formula to calculate the optimal values for
> the cache_dir parameters.
>
> L2_dirs := 256
>
> 0.95 * 16 * 1024 = 15564,8
> L1_dirs = 15564,8/416 = 37,42 => 38
>
> Given 256 L2 directories, you should have 38 L1 directories then.

From where did you get the 0.95 * 16 * 1024 part?

The calculation of L1 is dependent on the size of your cache_dir, the
number of objects there will be, and the setting of L2. For simplicity,
the value 416 includes a L2 value of 256 and a average object size of 13
KB plus a margin of 100%.

L2 = 256

L1 = cache_dir_size/416 rounded upwards

Further, note that these settings only have a marginal impact on
performance.

Regards
Henrik Nordström
Squid Hacker
Received on Tue Oct 30 2001 - 07:07:45 MST

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