[squid-users] Re: Why isn't "store_avg_object_size" self-configuring?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 18 Sep 2001 18:02:25 +0200

Steve Snyder wrote:

> Given that the average size of cached objects is known (see "client
> mgr:info) why does Squid (v2.4S2) need a fixed "store_avg_object_size"?

It doesn't really need it anymore, but it is good if it is set
reasonably close to the actual size (within +150% -50% of the actual
size).

> If the use of "store_avg_object_size" is to avoid continuous recalculation
> of the average size, how about having Squid do the recalc on a daily basis?

Today it is only used at startup time to determine the optimal size of
some internal tables. If these tables gets too large some memory is
wasted, to small some small amount of CPU is wasted. These tables are
set up before Squid knows what it has in the cache and cannot due to
design resize dynamically.

--
Henrik Nordstrom
Squid Hacker
Received on Tue Sep 18 2001 - 10:33:47 MDT

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