Search squid archive

Re: what happens whens quid cache gets full?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux