------------------------------------------------------------ revno: 13970 revision-id: squid3@treenet.co.nz-20160105053622-9wrbj3r4iu3vqgeb parent: squidadm@squid-cache.org-20160101061345-6p0hwrypu6iilgel author: Alex Rousskov committer: Amos Jeffries branch nick: 3.5 timestamp: Tue 2016-01-05 18:36:22 +1300 message: Reflect the [ugly] reality in external_acl_type cache=n documentation. The patch does not change how the cache works, but may help admins configure the cache correctly if they stumble upon the updated docs. A typical external ACL cache with the default cache settings consumes about 70 MB of RAM (more in many cases, e.g., if annotations are used with external ACLs). Besides memory usage, the default cache is using only 977 hash buckets for 262144 entries so there may be quite a bit of linear search going on by default. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20160105053622-9wrbj3r4iu3vqgeb # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # testament_sha1: f527cfc7cbbeb39b3ddf4f84e62dda5be6549aa7 # timestamp: 2016-01-05 05:44:58 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # base_revision_id: squidadm@squid-cache.org-20160101061345-\ # 6p0hwrypu6iilgel # # Begin patch === modified file 'src/cf.data.pre' --- src/cf.data.pre 2016-01-01 00:14:27 +0000 +++ src/cf.data.pre 2016-01-05 05:36:22 +0000 @@ -667,10 +667,14 @@ cached entry should be initiated without needing to wait for a new reply. (default is for no grace period) - cache=n Limit the result cache size, default is 262144. - The expanded FORMAT value is used as the cache key, so - if the details in FORMAT are highly variable a larger - cache may be needed to produce reduction in helper load. + cache=n The maximum number of entries in the result cache. The + default limit is 262144 entries. Each cache entry usually + consumes at least 256 bytes. Squid currently does not remove + expired cache entries until the limit is reached, so a proxy + will sooner or later reach the limit. The expanded FORMAT + value is used as the cache key, so if the details in FORMAT + are highly variable, a larger cache may be needed to produce + reduction in helper load. children-max=n Maximum number of acl helper processes spawned to service