From owner-freebsd-questions@FreeBSD.ORG Mon May 10 05:22:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C18316A4CF for ; Mon, 10 May 2004 05:22:34 -0700 (PDT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D1DC43D2D for ; Mon, 10 May 2004 05:22:33 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id C8E3469A71; Mon, 10 May 2004 08:22:32 -0400 (EDT) Message-ID: <409F7405.4070601@potentialtech.com> Date: Mon, 10 May 2004 08:22:29 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040506 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-9?Q?Yavuz_Ma=FElak?= References: <010401c4367d$3ed89610$dc96eed5@maslak> In-Reply-To: <010401c4367d$3ed89610$dc96eed5@maslak> Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: size of net.inet.tcp.sendspace and net.inet.tcp.recvspace X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 12:22:34 -0000 Yavuz Maşlak wrote: > hello > i want to tune on freebsd4.9, My server has pentium 4, 2.8Ghz, 73*4 Gbyte scsi disk > (Raid5), 2Gbyte ram. > it runs apache 1.3x. > For max performance, What does myserver should be size of net.inet.tcp.sendspace > and net.inet.tcp.recvspace or other values ? That's a complicated question. The default values are pretty reasonable for most uses. There are only (really) two reasons you should change them. 1) Each seperate connection allocates sendspace adn recvspace amount of memory. If you have a LOT of connections, this can use up RAM that is better used other places. 2) If you're transferring large file across considerable distances, you may hit a situation where increasing these increases performance. With 2G of RAM, I doubt #1 will apply, but it is possible to have so many connections that it needs to be considered, watch your load. #2 depends on what your web site is serving. If it's mostly static HTML pages, then the default of 32k for send is probably fine. If it's stuff considerably larger than that, then it might be worth trying to raise it a bit. Don't go overboard, or you'll end up with #1. If you're letting people upload big files/data, you may want to consider increasing recvspace ... same rules apply. You're probably best off leaving the default values, unless you notice performance problems. If that happens, try increasing (or decreasing) the value that seems appropriate and test to see if it's improved things. Keep an eye on your memory usage to ensure you don't increase anything to where #1 starts to occur. -- Bill Moran Potential Technologies http://www.potentialtech.com