Re: [squid-users] How much disk space is reclaimed by the cache replacement algorithms?

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Wed, 23 Dec 2009 17:58:41 +0100

On 22.12.09 17:45, Manjusha Maddala wrote:
> Using LRU replacement policy,

I hope you use at least "heap LRU" which is more effective.

> I see many of the cached webpages for my
> site getting evicted. Could someone here tell me:
>
> 1. How often is the replacement done?

when the percentage of configured cache_dir size crosses the cache_swap_high
value.

> 2. Lets say the cache low water mark is set to 95, I understand that
> once the disk usage exceeds 95%, cache replacement kicks in. Once the
> process is completed, what would the disk usage drop to?

the cleaning stops after cache usage falls under cache_swap_low value.

> 3. I notice some pages in the cache_dir which are over a month old.
> Doing a "curl" to the squid cache with the URL of the cached page causes
> a TCP_REFRESH_MISS/FIRST_UP_PARENT entry to be logged in the access log.
> Which means, the page has become stale (by the refresh pattern rules) on
> the web cache and a new page is fetched from the parent site. From this,
> I infer that the page hasn't been referenced in the last one month and
> yet hasn't been marked for cache replacement while other newer cached
> pages have been flushed out. Why's that?

apparently nobody asked for it and previous cleanings removed older objects.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Windows 2000: 640 MB ought to be enough for anybody
Received on Wed Dec 23 2009 - 16:58:54 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 24 2009 - 12:00:02 MST