Re: [squid-users] Squid limits and hardware spec

From: Ow Mun Heng <Ow.Mun.Heng@dont-contact.us>
Date: Mon, 29 Nov 2004 17:57:57 +0800

On Mon, 2004-11-29 at 11:32, Martin Marji Cermak wrote:
> Hello guys,
> I have been playing with Squid under a heavy load and there are some stats.
> I am trying to maximise the "Byte Hit Ratio" value. I got 13% average,
> but I am not happy about this number - I want it higher (how to do it?).
> There are thousands of ADSL clients using the cache and I want to know
> what the Squid limits are.
>
> USED HARDWARE:
> Processor: P4 1.8GHz
> Memory: 1 GB
> Hardisk: 40 GB IDE 7200rpm
> Controler: Serverworks Chipset
> Ethernet card: Broadcom TG3

I just built one but it's not connected/not a lot of users yet.

2.4G/512MB/80GB SATA 7200

> ACHIEVED PERFORMANCE:
> Byte Hit Ratio: 13% (TOO LOW !!!)

You want to save bandwidth or you want speed??

> USED CONFIGURATION:
> maximum_object_size 51200 KB (SHOULD I MAKE IT HIGHER ???)

I made mine to cache up to 40MB only. If you really want to have more
byte hit ratio, then by all means, up the max_obj_size.

> cache_dir aufs /cache 25000 16 256
> (one ide disk, see the spec above)

This seems too low. I used 40GB of the 80GB drive

> cache_mem 8 MB
200 MB. More being cached to memory. Faster retrieval.

>
> The Squid is configured as a transparet proxy, so:
> httpd_accel_uses_host_header on
> httpd_accel_with_proxy OFF (yes, transparent)
> httpd_accel_port 80
> httpd_accel_host virtual

Say.. do you have any experience running a load balanced squid? I'm
wondering, since it's transparent, what happens if Squid Goes down? (for
X Reasons?) What happens to your ADSL users? (in the thousands??)

> Tell me if you are interested in other settings.

Are you logging a lot of things? If you are, your IDE disk may not be
able to sustain the throughput.

It's advised to reduce or eliminate the logs unless you really need it.
Received on Mon Nov 29 2004 - 03:00:06 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:02 MST