Re: [squid-users] Multiple Cache dir - newbie question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 31 Jul 2003 10:42:39 +0200

On Thursday 31 July 2003 08.13, Mathew Thomas wrote:

> Is the above the best configuration for this server to have best
> performance?

Yes.

> Will multiple cache dir increase the performance?

You should use one cache_dir per disk for best performance is using
aufs. With diskd sometimes performance can be increased by having
more than one cache_dir for the same disk, but the difference is
marginal and I'd recommend a single cache_dir per disk for diskd
also.

> Each disk is 36 GB, so is it a good idea to increase the "Level-1"
> and "Level-2" numbers?

6 * 36 GB = 216 GB

216 GB * 10MB / GB = 2.16 GB of memory required.

do you have this amount of memory available, and can your platform
support this big processes?

But to answer your question

  L2 = 256

  L1 = size / 500 or bigger (rounded upwards)

The main criteria is that L1 is not too small and L2 not too big for
the filesystem.

Having L1 too big will only waste some disk space. No impact on
performance either way.

Having L1 too small or L2 too big will waste a little CPU time

Having L2 too small will waste a little memory for disk structure
cache.

The differences are not large, but the recommended sizes above works
well.

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Thu Jul 31 2003 - 02:43:05 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:21 MST