Re: [squid-users] what happens whens quid cache gets full?

From: Chris Robertson <crobertson_at_gci.net>
Date: Fri, 12 Feb 2010 15:49:08 -0900

J. Webster wrote:
> I have my squid cache size set to 40000 - is this in MB or kb?
>

To quote http://www.squid-cache.org/Doc/config/cache_dir/:

Usage:

        cache_dir Type Directory-Name Fs-specific-data [options]
...
        The ufs store type:
...
        cache_dir ufs Directory-Name Mbytes L1 L2 [options]

        'Mbytes' is the amount of disk space (MB) to use under this
        directory. The default is 100 MB. Change this to suit your
        configuration. Do NOT put the size of your disk drive here.
        Instead, if you want Squid to use the entire disk drive,
        subtract 20% and use that value.

> What happens when the cache approaches its max size, do I have to manually clear it or does squid take care of that?
>

 From http://www.squid-cache.org/Doc/config/cache_swap_low/:

        The low- and high-water marks for cache object replacement.
        Replacement begins when the swap (disk) usage is above the
        low-water mark and attempts to maintain utilization near the
        low-water mark. As swap utilization gets close to high-water
        mark object eviction becomes more aggressive. If utilization is
        close to the low-water mark less replacement is done each time.

        Defaults are 90% and 95%. If you have a large cache, 5% could be
        hundreds of MB. If this is the case you may wish to set these
        numbers closer together.

> Thanks

Chris
Received on Sat Feb 13 2010 - 00:49:20 MST

This archive was generated by hypermail 2.2.0 : Sat Feb 13 2010 - 12:00:04 MST