From 51121fbed4e4eb00e06c7abc62988abe4068f159 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Mon, 11 Aug 2008 20:53:46 +0000 Subject: squid: introduce low- and hugi-water-marks for better cache tuning --- packages/squid/squid.inc | 6 ++++++ packages/squid/squid_cache.xml | 14 ++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'packages') diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 94d50cf9..4b3e3b05 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -539,6 +539,10 @@ function squid_resync_cache() { $min_objsize = ($settings['minimum_object_size'] ? $settings['minimum_object_size'] : 0); $cache_policy = ($settings['cache_replacement_policy'] ? $settings['cache_replacement_policy'] : 'heap LFUDA'); $memory_policy = ($settings['memory_replacement_policy'] ? $settings['memory_replacement_policy'] : 'heap GDSF'); + + $cache_swap_low = ($settings['cache_swap_low'] ? $settings['cache_swap_low'] : '90'); + $cache_swap_high = ($settings['cache_swap_high'] ? $settings['cache_swap_high'] : '95'); + $offline_mode = ($settings['enable_offline'] == 'on' ? 'on' : 'off'); $conf = << + Low-water-mark in % + cache_swap_low + Cache replacement begins when the swap usage is above the low-low-water mark and attempts to maintain utilisation near the low-water-mark. + input + 90 + + + High-water-mark in % + cache_swap_high + As swap utilisation gets close to the high-water-mark object eviction becomes more aggressive. + input + 95 + + Do not cache donotcache Enter each domain or IP address on a new line that should never be cached. -- cgit v1.2.3