[squid-users] SMP-Workers + Rock Cache not caching as much as SMP-Workers + AUFS
Alex Rousskov
rousskov at measurement-factory.com
Fri Feb 8 09:13:18 UTC 2019
On 2/7/19 01:21, Lucolo wrote:
> I follow your manual just to configure "CARP Cluster of SMP workers with
> rock", so I assume this is a working configuration
> https://wiki.squid-cache.org/ConfigExamples/SmpCarpCluster
FWIW, that old configuration should not be used except, perhaps, in some
highly unusual/rare use cases. You are probably _not_ dealing with such
a case.
> Since it's the basic configuration Squid recommends,
It is not basic and it is not generally recommended (despite being
published on a Squid wiki).
Most modern SMP setups should use multiple workers and multiple Rock
diskers, without SMP macros in squid.conf. The exact number of workers
and diskers depends on the number of physical CPU cores, desired hit
ratio, and actual workload -- there is no "one size fits all" formula.
However, you may be able to start with
W=C-2
D=1
where W is the number of SMP workers, D is the number of rock cache_dir
lines (i.e. the number of diskers), and C is the "number of otherwise
idle physical CPU cores" on the Squid box. If your disker becomes
overloaded, increase D (and probably decrease W) and/or reduce disk
load. You can find more information at
* https://wiki.squid-cache.org/Features/SmpScale
* The tuning section of
https://wiki.squid-cache.org/Features/RockStore
Alex.
More information about the squid-users
mailing list