From owner-freebsd-net@FreeBSD.ORG Mon Apr 6 17:24:12 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 712301065774 for ; Mon, 6 Apr 2009 17:24:12 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.cksoft.de (mail.cksoft.de [195.88.108.3]) by mx1.freebsd.org (Postfix) with ESMTP id 27F968FC15 for ; Mon, 6 Apr 2009 17:24:12 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id C064A41C712; Mon, 6 Apr 2009 19:05:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id q1-xDRngDDxK; Mon, 6 Apr 2009 19:05:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id 6379A41C70A; Mon, 6 Apr 2009 19:05:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 42C604448E6; Mon, 6 Apr 2009 17:01:22 +0000 (UTC) Date: Mon, 6 Apr 2009 17:01:22 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: sthaug@nethelp.no In-Reply-To: <20090406.121959.74751582.sthaug@nethelp.no> Message-ID: <20090406165933.C15361@maildrop.int.zabbadoz.net> References: <20090405.231044.74688369.sthaug@nethelp.no> <20090405214757.E15361@maildrop.int.zabbadoz.net> <20090405215842.C15361@maildrop.int.zabbadoz.net> <20090406.121959.74751582.sthaug@nethelp.no> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: IPv6 window scaling factor always 1 on initial SYN X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 17:24:13 -0000 On Mon, 6 Apr 2009, sthaug@nethelp.no wrote: >> Ok, both versions had: < so->so_rcv.sb_hiwat) >> >> http://svn.freebsd.org/viewvc/base?view=revision&revision=166403 >> >> changed it for IPv4 the first time, >> >> http://svn.freebsd.org/viewvc/base?view=revision&revision=172795 >> >> changed it a second time for IPv4. >> >> Noone changed the IPv6 version. >> >> The syncache already seems to do it for both v4/v6 (common code). >> >> Can you try changing it to < sb_max) for IPv6 as well and see if >> things work (better) for you? > > I changed it, and that worked like a dream. Now I get basically the > same throughput with IPv4 and IPv6. That sounds great! :-) > There are of course still issues > like lots of IPv6 tunnels that add extra latency - but that's not the > fault of FreeBSD. > Anyway, thanks for your work. Below is a context diff (against 7-STABLE > cvsupped last night). Do we need a PR to get this into FreeBSD? No, not even the context diff would have been needed;-) I'll commit it as soon as I find a few quiet minutes and a src tree;-) /bz -- Bjoern A. Zeeb The greatest risk is not taking one.