Re: How to balance L1 and L2 caches?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 08 Dec 1999 01:39:01 +0100

Steve Snyder wrote:

> Rather than further reducing L1, should I pare down L2 from its
> default 256 instead? How does one determine a balance between L1 and
> L2 values?

L2 depends on your flavor of UNIX. The default of 256 is assumed to be
good on most flavors. The intention is to keep search times in the L2
directories reasonably fast (within one or two memory pages).

L1 depends on the size of your cache, L2 and store_avg_object_size. For
Squid up to 2.2 L1 should be at least "cache_dir_size * 2 /
store_avg_object_size / L2 / L2". Less is bad, more will not hurt you
much.

--
Henrik Nordstrom
Squid hacker
Received on Tue Dec 07 1999 - 18:15:15 MST

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