Re: [squid-users] cache_dir ... plz help

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 25 Oct 2001 01:39:58 +0200

timo.dudziak@student.uni-siegen.de wrote:

> cache_dir [ufs | asyncufs] dir MB L1 L2
> perfect for ext2:
> L2 := 256
> L1 := ceil( MB / 416 )
> so why / 416 ?

Because someone simplified the calcuation for you by eleminating all
constants.

L2 = 256 (there is generally no reason to change this on
ext2/ext3/ufs/whatever with a similar directory structure)

L1 = ceil( MB * 1024 / (2 * average_object_size * L2 * L2))

  MB = size of the cache in MB
  2 = a safety margin
  1024 = conversion factor from MB to KB
  average_object_size = 13 KB (farily standard)

For reiserfs there MAY be a slight benefit in increasing L2 somewhat,
but not too much. There is only marginal differences in tuning this
parameter.

Regards
Henrik Nordström
Squid Hacker
Received on Wed Oct 24 2001 - 17:39:21 MDT

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