Re: [squid-users] Configuring Cache_Dir Size

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 10 Dec 2013 21:16:58 +1300

On 9/12/2013 10:57 p.m., Linux Zoom wrote:
> Dears,
>
> We have server for caching with the following specifications:
> OS CentOS 6.4 64-bit
> Kernel 2.6.32-358.el6.x86_64
> CPU Intel(R) Xeon(R) CPU E5640 @ 2.67GHz 8 Cores
> RAM 8 GB
> hard disk space 850 GB
>
> we installed squid-3.1.10-19.el6_4.x86_64 and we want to know the
> optimal way to configure the cache_dir size and L1 and L2

Configure it however you like. The traffic on your network is what
determines "best" so we cant tell you what to do very well (if we could
predict it would be automated already).
 L1 and L2 on modern filesystems can be any multiple of 2. They exist to
allow manual avoidance of files-per-directory limitations on some
systems. The popular values tend to be powers of 2 such as 16/64,
16/128, 32/256, 64/256, etc

The general recommendation is to aim for storage of around 7 days worth
of traffic.

With a 850 GB disk I would allocate:
* 50GB rock cache_dir for objects size between 4KB and 32KB.
* 10GB rock cache for objects size under 4KB.
* the 600GB AUFS cache_dir for objects >32KB.

Amos
Received on Tue Dec 10 2013 - 08:17:04 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 10 2013 - 12:00:04 MST