From owner-freebsd-isp Fri Feb 8 6:54:20 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mail.latnet.lv (mail.latnet.lv [159.148.108.208]) by hub.freebsd.org (Postfix) with SMTP id 724EA37B420 for ; Fri, 8 Feb 2002 06:54:12 -0800 (PST) Received: (qmail 20911 invoked by uid 64014); 8 Feb 2002 14:54:11 -0000 Received: from ac@latnet.lv by mail with qmail-scanner-0.96 (. Clean. Processed in 0.036863 secs); 08 Feb 2002 14:54:11 -0000 Received: from 1anyone.latnet.lv (HELO box) (TheOne@159.148.108.188) by mail.latnet.lv with SMTP; 8 Feb 2002 14:54:10 -0000 Message-ID: <00c301c1b0b0$447cb240$bc6c949f@box> From: "Artis Caune" To: "Jorge Bianquetti de las Heras" , Cc: References: <10F29E27A956D511B0940050DA8D86A9340ECB@apmail.dagupan.com> <20020208124905.06f9f242.jbianquetti@sadiel.es> Subject: Re: Tuning FreeBSD for Squid proxy/cache Date: Fri, 8 Feb 2002 16:52:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org *) kern.ipc.maxsockbuf=2097152 what is this tuning for ? is it socket buffer? *) kern.ipc.maxsockets=16424 it`s read only! :( this tune maximum sockets on box ? _ Artis http://www.ltn.lv/~ac FingerPrint: 57E1 4C1A 4638 A306 9055 4E4B 1035 376A 0523 8936 > 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! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message