From owner-freebsd-hackers Mon May 7 15:18: 0 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 2683837B422 for ; Mon, 7 May 2001 15:17:56 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id QAA03155; Mon, 7 May 2001 16:17:53 -0600 (MDT) (envelope-from ken) Date: Mon, 7 May 2001 16:17:53 -0600 From: "Kenneth D. Merry" To: Bob Willcox Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507161753.D2810@panzer.kdm.org> References: <20010507162005.C55671@luke.immure.com> <20010507153802.A2669@panzer.kdm.org> <20010507164531.A64063@luke.immure.com> <20010507171520.C64063@luke.immure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010507171520.C64063@luke.immure.com>; from bob@immure.com on Mon, May 07, 2001 at 05:15:20PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 17:15:20 -0500, Bob Willcox wrote: > On Mon, May 07, 2001 at 04:45:31PM -0500, Bob Willcox wrote: > > On Mon, May 07, 2001 at 03:38:02PM -0600, Kenneth D. Merry wrote: > > > On Mon, May 07, 2001 at 16:20:05 -0500, Bob Willcox wrote: > > > > > > > > I am working on a FreeBSD device driver for my Co's GSN adapter and need > > > > to be able to set my TCP/IP window size to 512KB (or perhaps more). I > > > > have tried doing this with sysctl: > > > > > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.recvspace=524288 > > > > net.inet.tcp.recvspace: 131072 -> 524288 > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.sendspace=524288 > > > > net.inet.tcp.sendspace: 131072 -> 524288 > > > > > > > > and although the sysctl happily takes the specification, when I attempt > > > > an ftp command I get: > > > > > > > > root@sebulba:p0 /root> ftp 192.168.1.2 > > > > ftp: socket: No buffer space available > > > > > > > > This is on a FreeBSD 4.0-stable system: > > > > > > > > FreeBSD sebulba.vieo.com 4.0-STABLE FreeBSD 4.0-STABLE #202: Mon May 7 15:09:46 CDT 2001 bob@sebulba.vieo.com:/usr/src/sys/compile/GPXTEST i386 > > > > > > > > Anybody have any ideas what I need to do to get this to work? > > > > > > sysctl -w net.inet.tcp.rfc1323=1 > > > > > > You need that to be able to set your window size to anything over 64K. I > > > think there's an rc.conf knob to do that so you don't have to tweak it > > > manually every time. > > > > Thanks, I'll give this a try. > > > I tried setting the above sysctl but that didn't have any effect on the > problem. Through a binary search of send and recv space settings I was > able to determine that anything over 227 KB (232448 bytes) fails when I > attempt to open a TCP socket. You probably also need: sysctl -w kern.ipc.maxsockbuf=2097152 Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message