From owner-freebsd-net@freebsd.org Wed Aug 26 00:12:05 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E76799C3C5B for ; Wed, 26 Aug 2015 00:12:05 +0000 (UTC) (envelope-from chris@stankevitz.com) Received: from mango.stankevitz.com (mango.stankevitz.com [208.79.93.194]) by mx1.freebsd.org (Postfix) with ESMTP id D173DDB3 for ; Wed, 26 Aug 2015 00:12:05 +0000 (UTC) (envelope-from chris@stankevitz.com) Received: from Chriss-MacBook-Pro.local (209-203-101-124.static.twtelecom.net [209.203.101.124]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mango.stankevitz.com (Postfix) with ESMTPSA id 6DC2F136A; Tue, 25 Aug 2015 17:12:04 -0700 (PDT) Message-ID: <55DD0453.3040803@stankevitz.com> Date: Tue, 25 Aug 2015 17:12:03 -0700 From: Chris Stankevitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "Bjoern A. Zeeb" CC: freebsd-net@freebsd.org Subject: Re: ssh over WAN: TCP window too small References: <55DCF080.7080208@stankevitz.com> <27420EDC-5816-4B9E-A834-E4A035B8411C@lists.zabbadoz.net> In-Reply-To: <27420EDC-5816-4B9E-A834-E4A035B8411C@lists.zabbadoz.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2015 00:12:06 -0000 On 8/25/15 4:11 PM, Bjoern A. Zeeb wrote: > >> On 25 Aug 2015, at 22:47 , Chris Stankevitz wrote: >> >> Can anyone recommend some tools/tricks to figure out what in FreeBSD and/or >> base SSH is limiting the send/recv buffer and/or TCP window? > > if you have the memory, try these sysctls: > > kern.ipc.maxsockbuf=146800640 > net.inet.tcp.recvbuf_max=67108864 > net.inet.tcp.sendbuf_max=67108864 Bjoern, Thank you for the reply. Before your suggestion my sysctls are: kern.ipc.maxsockbuf=2097152 net.inet.tcp.recvbuf_max=2097152 net.inet.tcp.sendbuf_max=2097152 Each of these is much larger than the limit I am experiencing (~64,000). So I [naively] expect changing these values will have no effect. Let me try... ... okay... sure enough the sysctrl changes you suggest did not change the 64,000 bytes-in-flight limit I am experiencing. Thanks for the idea (and keep 'em coming!), Chris