Re: Squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 12 Dec 1999 06:55:01 +0100

Jody Owens wrote:
>
> network transparent one

Ok. This is good to know if the advices below does not help.

> just ulimit changes on boot up

Then you most likely runs out of available sockets for Squid to use. The
default settings of the kernel is not well suited for making many TCP
connections.

echo 1024 32768 >/proc/sys/ipv4/ip_local_port_range

The default only allows for ~4000 sockets, which quickly gets used if
you have any decent load (>30 requests/second)

You may also need to increase the amount of inodes and filetable entries
available to the kernel. I am not 100% sure on the details of how or if
these needs to be tuned for Squid use, but the following seems to work
quite nicely:

echo 16384 >/proc/sys/fs/inode-max
echo 8192 >/prox/sys/fs/file-max

--
Henrik Nordstrom
Squid hacker
Received on Sat Dec 11 1999 - 23:09:55 MST

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