Search squid archive

Re: Configuring Cache_Dir Size

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

 



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




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

  Powered by Linux