Re: LRU replacement question.

From: Dancer <dancer@dont-contact.us>
Date: Thu, 04 Nov 1999 02:06:42 +0000

Roddy Strachan wrote:
>
> Hi,
> Can someone out there enligten me on how squid knows when it has
> hit its LRU replacement mark?
>
> I have been having problems with it not clearing properly, here are the
> relevant lines in the config.
>
> cache_mem 140 MB (The box its running on is a Celeron 400, 256 Meg ram
> and 20 gig drive space.)
>
> cache_swap_low 94
> cache_swap_high 99
>
> cache_dir /usr/local/squid/cache 8320 32 256
> cache_dir /usr/local/squid/cache1 2350 32 256
> cache_dir /usr/local/squid/cache2 9300 32 256
>
> Which brings the above out to :
>
> Cache : 8519680 KB
> Cache1 : 2406400 KB
> Cache2 : 9523200 KB
>
> Current df stats :
>
> /dev/sda1 8566007 7846697 275115 97% /usr/local/squid/cache
> /dev/hdc1 3062343 2616350 287613 90% /usr/local/squid/cache1
> /dev/hdd1 9657255 8823896 332259 96% /usr/local/squid/cache2
>
> Now the problem is the cache keeps filling up, i had to delete some
> entries to gain some space back. Why isnt the LRU replacement working the
> way it should is there something I am missing here?

Size of cache swap files? They aren't counted. They will also grow without limit, unless you periodically restart squid.

D
Received on Wed Nov 03 1999 - 19:13:56 MST

This archive was generated by hypermail pre-2.1.9 : Wed Apr 09 2008 - 11:57:31 MDT