Re: Squid store replacement policies

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 26 Apr 2000 23:00:50 +0200

Adrian Chadd wrote:

> Well, I'm not up on how the heap code actually works, but it might
> make sense to get notification when the object becomes unreferenced.
> The heap code uses this to update the heap position.

Maybe. Most times it won't make a noticeable difference, but it might
for a large object in a small store.

> I would actually be tempted to change the unrefobj to be called at
> each invocation of storeUnlockObject(), but I don't see the
> need right now ..

The definiton of a reference (or unreference) should be quite distinct
as it affects the frequency based policies quite a lot.
storeLock/UnlockObject might be called at other occations than object
reference.

/Henrik
Received on Wed Apr 26 2000 - 15:41:10 MDT

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