From owner-freebsd-net@FreeBSD.ORG Wed Sep 4 04:54:18 2013 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8D6D0EA for ; Wed, 4 Sep 2013 04:54:18 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 60F462BA4 for ; Wed, 4 Sep 2013 04:54:17 +0000 (UTC) Received: from Julian-MBP3.local (ppp121-45-245-177.lns20.per2.internode.on.net [121.45.245.177]) (authenticated bits=0) by vps1.elischer.org (8.14.6/8.14.6) with ESMTP id r844rwXb051219 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 3 Sep 2013 21:54:05 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <5226BCE1.40107@freebsd.org> Date: Wed, 04 Sep 2013 12:53:53 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: David Wolfskill Subject: Re: TSO and FreeBSD vs Linux References: <520A6D07.5080106@freebsd.org> <5214F506.3070706@freebsd.org> <20130903192734.GA19406@albert.catwhisker.org> <20130903224928.GQ1577@albert.catwhisker.org> In-Reply-To: <20130903224928.GQ1577@albert.catwhisker.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Sep 2013 04:54:18 -0000 On 9/4/13 6:49 AM, David Wolfskill wrote: > On Tue, Sep 03, 2013 at 12:27:34PM -0700, David Wolfskill wrote: >> ... >> As soon as I issued "sudo net.inet.tcp.tso=0" ... the copy worked without >> a hitch or a whine. And I was able to copy all 117709618 bytes, not just >> 2097152 (2^21). > The above command should (of course) have read > > sudo sysctl net.inet.tcp.tso=0 > > Also: I normally had the em0 NIC on the machine in question connected to > a Netgear GS105 (5-port Gigabit switch). In the process of > trouble-shooting the problem with NFS writes, I bypassed that switch and > connected the em0 NIC directly to the jack in my cube. > > In that configuration, the em0 NIC showed "media: Ethernet 1000baseT > (autoselect)", while connected to the GS105, it showed "media: Ethernet > 100baseTX (autoselect)". > > While the NFS write worked whether or not I had the GS105 in the path, > it seemed ... suboptimal ... to have a NIC capable of 1000baseT > connected to a Gigabit switch, but negotiating at 100baseTX. > > So I tried setting the media via "ifconfig em0 media 1000baseT"; after a > few seconds, it finally woke back up, and now reports "media: Ethernet > 1000baseT (1000baseT )". > > So it appears that the em(4) driver and Intel 82578DM NIC fail to > negotiate 1000baseT with the Netgear GS105. yeah auto-negotiation seems a bit fragile.. not just for us either.. I often end up hardwiring it in rc.conf. > Peace, > david