Search squid archive

Re: Recommended cache_dir config for large system

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

 



On ons, 2008-07-16 at 13:20 -0500, Rhino wrote:
> Have Squid2.7STABLE1 running on Debian Linux box with 4 278 GB drives 
> allotted for caching.
> System has 32 gig RAM, and serves approx. 10k users.
> Seeking input as to the most effective config options on this system in 
> order to reduce latency
> and maximize throughput.

Ample amounts of filedescriptors. Give Squid 32K filedescriptors or so
(--max-fd configure option, or max_filedescriptors config option in
squid.conf 2.7)

maxed number of outgoing TCP ports. (ip_local_port_range sysctl)

persistent connections enabled (default)

aufs cache_dir type, with two cache_dir per drive. L1=128, L2=256.

Make sure to leave some GB of ram for OS + fs cache. Don't be too
agressive about the Squid memory usage.

Do not configure a swap. Instead leave sufficient margin in the memory
usage..

Should also give some advice on which filesystem to use, but ext3 is
probably fine. reiserfs is also a good candidate but may need the notail
mount option.

noatime mount option on the cache drives.

Regards
Henrik


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

  Powered by Linux