i got these values from cache.dfn.de.
(unfortunately these pages are all in german)
of course this does not mean that 'dfn.de' are the caching gurus :-)
they have made a considerably big caching project for a
german research network, i've read through their complete
concept and found this was interesting as it sounded quite
conclusive to me.
the first part of the formula takes care of filesystem
overhead or something like that - regardless whether
this is really necessary or not...
Best regards
hno@marasystems.com@filer.marasystems.com on 30.10.2001 15:07:54
Sent by: henrik@filer.marasystems.com
To: Torsten.Lange@GECITS-EU.COM
cc: squid-users@squid-cache.org
Subject: Re: [squid-users] L1 & L2 Directories in Chache settings
--------------------------------------------------------------------------
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:40:49 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:13 MST