From owner-freebsd-questions Tue Mar 5 13:28: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns1.digitalglobe.com (dns1.digitalglobe.com [205.166.175.34]) by hub.freebsd.org (Postfix) with ESMTP id 042C837B405 for ; Tue, 5 Mar 2002 13:27:39 -0800 (PST) Received: from lohr.digitalglobe.com (lohr.digitalglobe.com [10.10.11.18]) by dns1.digitalglobe.com (8.11.6/8.11.4) with ESMTP id g25LRWv54739; Tue, 5 Mar 2002 14:27:32 -0700 (MST) Subject: Re: changing TCP window size ? From: John-David Childs To: RJ45 Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2-4mdk Date: 05 Mar 2002 14:27:32 -0700 Message-Id: <1015363653.14114.48.camel@lohr> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Recently, while trying to optimize an FTP server's performance during the 4.4-STABLE network code transition (i.e. when network performance really sucked ;-), I found the following sysctl variables handy: net.inet.tcp.sendspace net.inet.tcp.recvspace These values can be changed "on the fly" with sysctl -w. Whether they actually change a running stream (or just future ones) I don't know. On Mon, 2002-03-04 at 03:03, RJ45 wrote: > > Hello. > How is possible to change TCP window size on the fly for a network > application? > For example: I have a 256Kbps ADSL so I would like to change TCP win size > accordingly to my bandwidth and delay time measured by ping: 256*RTT > the result should be the TCP window size, or at least the minimum size for > better performances. How to change window size ? > thanks > > Rick > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message