Re: [squid-users] Squid usage

From: Joe Cooper <joe@dont-contact.us>
Date: Mon, 14 May 2001 06:46:55 -0500

Hmmm, can the CPU be upgraded reasonably? You'll be hitting the roof on
375MHz at your load (even if it is a proper processor, and not an x86).

Your large amount of RAM can make up for a lot, but CPU still can be a
limiting factor.

Also, adding a third and possibly fourth disk will be helpful.

Giving Squid more cache_mem will help marginally. Give it about 128MB,
and it will probably lower CPU usage slightly (almost immeasurably--but
every little bit helps, I guess).

Another important item, because you have so much RAM, there is no reason
why you can't up the size of your cache_dirs by a quite a bit. I would
say 24GB for your current drives, or 30GB if you add one or two more,
would be a nice total capacity for your object store. More than that is
overkill at your load (and will eat into the free RAM you have for
buffering disk i/o--thus /hurting/ performance), less will lead to an
unnecessarily large amount of disk activity in cleaning up--removing
files is probably a definite limiting factor on your system, because you
have such a small object store.

If none of those things helps lower your hit response time, you can
revert to some disk I/O tricks to help things along a little:

Set your minimum object size to be written to disk to something like 2k.
  This will cause a little less work for the disks and will only
marginally impact hit ratio.

Set the low and high water marks farther apart... 80 and 100 are good
numbers for this trick. This leads to slightly less aggressive deletion
when your cache approaches 'full'.

Neither of these has a huge impact on performance (and can have slightly
negative impacts on hit ratio in some circumstances), but again, every
little bit helps.

BLATS@fr.ibm.com wrote:

>
> I use squid 2.4stable1 on AIX 4.3.3 , 375 MHZ, 2 GB RAM , 2*18GB for
> cache1 and for cache2
>
> here some options
>
> cache_mem 16 MB
>
> cache_dir diskd /cache1 3500 32 256
> cache_dir diskd /cache2 3500 32 256
> cache_store_log none
> emulate_httpd_log on
> log_icp_queries off

                                   --
                      Joe Cooper <joe@swelltech.com>
                  Affordable Web Caching Proxy Appliances
                         http://www.swelltech.com
Received on Mon May 14 2001 - 05:44:26 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:59 MST