Re: squid disk cache replacement policy

From: Brian Beuning <[email protected]>
Date: Sat, 01 May 1999 12:58:44 -0400

Thanks for the pointer, I saw that code but wasn't sure it was
the right place. I guess I need to track down how store_list
is maintained.

I use squid with wget as my personal web cache. What is not
working right, is pages that wget pulled into the cache recently
(within the last one or two days) often get purged before pages
which have not been accessed for much longer.

Thanks,
Brian Beuning

Henrik Nordstrom wrote:

> Brian Beuning wrote:
> >
> > I am looking for the code in squid that decides which files to
> > remove when the disk cache is full. Can someone point me
> > to this code? It does not seem to be working how I would
> > like it to.
>
> The store replacement is done in store.c:storeMaintainSwapSpace()
> (ignore the comment at the top, it is vay old. Read the code.). The code
> does a form of "Modified LRU with a small bias to expired objects".
>
> In what way does it not work like you'd like it to?
>
> --
> Henrik Nordstrom
> Spare time Squid hacker
Received on Sat May 01 1999 - 10:39:45 MDT

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