Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2002 12:49:05 +0100
From:      Jorge Bianquetti de las Heras <jbianquetti@sadiel.es>
To:        francisv@dagupan.com
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Tuning FreeBSD for Squid proxy/cache
Message-ID:  <20020208124905.06f9f242.jbianquetti@sadiel.es>
In-Reply-To: <10F29E27A956D511B0940050DA8D86A9340ECB@apmail.dagupan.com>
References:  <10F29E27A956D511B0940050DA8D86A9340ECB@apmail.dagupan.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 Feb 2002 18:58:36 +0800 
francisv@dagupan.com wrote:


Use sysctl

First, you must increase your net resources:

net.inet.tcp.rfc1323=1
net.inet.tcp.delayed_ack=0
net.inet.tcp.sendspace=65535
net.inet.tcp.recvspace=65535
net.inet.udp.recvspace=65535
net.inet.udp.maxdgram=57344
net.local.stream.recvspace=65535
net.local.stream.sendspace=65535

Second you must increase process and files 

kern.ipc.maxsockbuf=2097152
kern.ipc.somaxconn=8192
kern.ipc.maxsockets=16424
kern.maxfiles=65536
kern.maxfilesperproc=32768

Third, recompile kernel and be carefull with this. 
Works 100% stable for me. Use with care!

> Hi,
> 
> We have 3 Squid proxy/cache servers running on FreeBSD 4.5-STABLE. The boxes
> are quite powerful: Pentium III 933Mhz with 1.5GB RAM and 4x70GB UDMA-100
> hard drives. Are there are guides on tuning this kind of box aside from `man
> (7) tuning'?
> 
> ---
>  francis a. vidal [bitstop network services] | http://www.dagupan.com
>  streaming media + web hosting               | http://www.keystone.ph
>  v(02)330-2871,(02)330-2872; f(02)330-2873   | http://www.kuro.ph 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020208124905.06f9f242.jbianquetti>