Re: [squid-users] Recommended cache_dir config for large system

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 16 Jul 2008 21:01:16 +0200

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
Received on Wed Jul 16 2008 - 19:01:24 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 17 2008 - 12:00:03 MDT