From owner-freebsd-current@FreeBSD.ORG Thu Feb 10 04:54:04 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 063331065670 for ; Thu, 10 Feb 2011 04:54:04 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from DB3EHSOBE002.bigfish.com (db3ehsobe002.messaging.microsoft.com [213.199.154.140]) by mx1.freebsd.org (Postfix) with ESMTP id 2227F8FC0C for ; Thu, 10 Feb 2011 04:54:02 +0000 (UTC) Received: from mail43-db3-R.bigfish.com (10.3.81.254) by DB3EHSOBE002.bigfish.com (10.3.84.22) with Microsoft SMTP Server id 14.1.225.8; Thu, 10 Feb 2011 04:54:02 +0000 Received: from mail43-db3 (localhost.localdomain [127.0.0.1]) by mail43-db3-R.bigfish.com (Postfix) with ESMTP id D18C378432 for ; Thu, 10 Feb 2011 04:54:01 +0000 (UTC) X-SpamScore: -4 X-BigFish: VPS-4(zzzz1202hzz8275bh8275dh186Mz2ei2a8h668h64h) X-Spam-TCS-SCL: 3:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:avexcashub1.qlogic.com; RD:avexcashub2.qlogic.com; EFVD:NLI Received: from mail43-db3 (localhost.localdomain [127.0.0.1]) by mail43-db3 (MessageSwitch) id 1297313640906899_25204; Thu, 10 Feb 2011 04:54:00 +0000 (UTC) Received: from DB3EHSMHS004.bigfish.com (unknown [10.3.81.242]) by mail43-db3.bigfish.com (Postfix) with ESMTP id DA65CA2004E for ; Thu, 10 Feb 2011 04:54:00 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.64) by DB3EHSMHS004.bigfish.com (10.3.87.104) with Microsoft SMTP Server (TLS) id 14.1.225.8; Thu, 10 Feb 2011 04:54:00 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub2.qlogic.org ([::1]) with mapi; Wed, 9 Feb 2011 20:53:57 -0800 From: David Somayajulu To: "freebsd-current@freebsd.org" Date: Wed, 9 Feb 2011 20:53:56 -0800 Thread-Topic: Increasing TCP Window Size in FreeBSD. Thread-Index: AcvI3oXMBvBEBCA5T52I5MGnR3iDoA== Message-ID: <75E1A2A7D185F841A975979B0906BBA6774DD4DE73@AVEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Increasing TCP Window Size in FreeBSD. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 04:54:04 -0000 I have been using iperf in server mode to do some performance analysis. I was trying to increase the Receive TCP Window Size via sysctl net.inet.tcp.recvspace=3D I noticed that I could increase it atmost to 128Kbytes (131072). Any value = above 128k, results in a failure to get the requested window size, resultin= g in a failure of "iperf -s -w ". How can I increase it beyond 128Kbytes ? Here are some relevant sysctl values I have been using: net.inet.tcp.rfc1323: 1 net.inet.tcp.recvspace: 131072 net.inet.tcp.recvbuf_max: 4096000 net.inet.tcp.recvbuf_inc: 65536 net.inet.tcp.recvbuf_auto: 1 Thanks david S. ________________________________ This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message.