From owner-freebsd-net@FreeBSD.ORG Wed Sep 4 22:20:06 2013 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 59D7BA56; Wed, 4 Sep 2013 22:20:06 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 010032A80; Wed, 4 Sep 2013 22:20:05 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.7/8.14.7) with ESMTP id r84MK453029462; Wed, 4 Sep 2013 15:20:04 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.7/8.14.7/Submit) id r84MK4KI029461; Wed, 4 Sep 2013 15:20:04 -0700 (PDT) (envelope-from david) Date: Wed, 4 Sep 2013 15:20:04 -0700 From: David Wolfskill To: Adrian Chadd Subject: Re: TSO and FreeBSD vs Linux Message-ID: <20130904222004.GD1577@albert.catwhisker.org> References: <20130903192734.GA19406@albert.catwhisker.org> <979862494.17918795.1378299005617.JavaMail.root@uoguelph.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9hzSyicXuByfNYJd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 22:20:06 -0000 --9hzSyicXuByfNYJd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 04, 2013 at 03:03:12PM -0700, Adrian Chadd wrote: > Hiya, >=20 > David - can you put together a minimal test case that others can reproduc= e? > I have a bunch of gige intel NICs that I can try this with when I'm back = in > the office. > ... On NFS client machine (w/ Intel NICs): * Ensure that net.inet.tcp.tso=3D1. * Create or gain access to a regular file, size > 2^21 bytes. * In my case, "ifconfig em0" showed both TSO4 & VLAN_HWTSO. I have not experimented to determine whether either or both of those is required -- and in my case, the machine is my desktop here at work: I would prefer to avoid breaking it. :-} * Mount a writable file system with adequate free space via NFS. * Write the file (e.g., via cp(1)). If that fails to re-create the problem, perhaps you'll need to have another NIC and run IPFW & natd. Something similar to the stock "simple" configuration (/etc/rc.firewall) should do. During the write, I would run "tcpdump -s 0 -w /tmp/cp.bpf host $NFS_server= ", then look at the captured traffic later. I used wireshark; it pointed out the retransmissions. Peace, david --=20 David H. Wolfskill david@catwhisker.org Taliban: Evil cowards with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --9hzSyicXuByfNYJd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iEYEARECAAYFAlInshMACgkQmprOCmdXAD01JgCeOt5dI1R6uaBgHGXnkkrMzo5A 8d8Amwdd3igbW0d30fhUk6vLda1V+zio =2dk+ -----END PGP SIGNATURE----- --9hzSyicXuByfNYJd--