RE: [squid-users] how many hits can squid can handle

From: Chemolli Francesco (USI) <ChemolliF@dont-contact.us>
Date: Thu, 13 Sep 2001 09:53:18 +0200

> hi
> no this box is not a router but working as a transparent cache
> hence the need for ip forwarding
> yeah u r righ i think that the inode-max and file-max are a bit on the
> higher side..
> can that be th reason that the amount of buffers/cache keeps on
> increasing
> im using kernel 2.2.19
> right now free -m shows me
>
> total used free shared buffers
> cached
> Mem: 505 502 2 11 174
> 52
> -/+ buffers/cache: 275 230
> Swap: 4000 0 4000
>
> and the buffers/cache used row keeps on increasing .....
> are my huge values for inode-max and file-max responsible for that
> i had compiled the kernel with
> FD_SETSIZE = 16384
> changed fs.h NR_FILE to 65536
> NR_RESEND_FILE 128
> changed tasks.h
> NR_TASK 4000
> MAX_TASK_PER_USER 2000

Why so high? Squid uses only a handful of processes anyways...

> aprt from this i get a lot of SYN_RECEIVED ..about 6000 outstanding at
> any time ... so ihv increased tcp_max_syn_backlog to 10000
> also set syn_cookies to 1

VERY expensive...

> also at abt 50 req/sec squid eats upto 80% cpu
> is this due to the excessive syn recieved ???

No, syn cookies.

> pls do get back ..
> i dont want my box to go into swapping
> aprt from squid process there is absolutely nothing else
> running on the
> system except dor ipchains for port redirection for transparent
> proxying

Check the load you're getting and tune the resource so that you can double
the load and not more. Reserving excess resources is wasteful.

-- 
	/kinkie
Received on Thu Sep 13 2001 - 11:19:49 MDT

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