From owner-freebsd-net@FreeBSD.ORG Wed Sep 4 22:26:02 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 49031C16 for ; Wed, 4 Sep 2013 22:26:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C51662ADA for ; Wed, 4 Sep 2013 22:26:01 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id p60so983005wes.26 for ; Wed, 04 Sep 2013 15:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=g6MIP9ijbTlBDo2bxLMiAR82stSeHu9/y2aV4fBnj50=; b=TZJyyLp6FNsJeacb4gE1gnLYMdSmtUrZX5c+eWy3Dy3WgM7uwNtwVWHSzllv5kpSwP 0+zuUsrAOotiqZs4EpBIyaKkARqqu2ZmxLLcQvHVrkfGsNIDEAX++Ib2BdtKLg82cIf6 YcK4mKnlH7GSPBd0uhByWQHu/GVm9y8gkhrjiZPZDctv51ZMYJaKUcBbbzGN7aTXexhj +S4Hur05HKlEElpXHFDhizzRXKAs/ncM1zvCcAR0n/e1FOPbCz7s/D3QPj1PevjmCB8E ehIfhB7vZ3aU4J41Ck+FdOOSOqAP+zhXLJcxRJsMjk3URg/0C1Agg6URrGKJHb3fzgD5 QU6w== MIME-Version: 1.0 X-Received: by 10.180.72.198 with SMTP id f6mr3891858wiv.46.1378333560275; Wed, 04 Sep 2013 15:26:00 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Wed, 4 Sep 2013 15:25:59 -0700 (PDT) In-Reply-To: <20130904222004.GD1577@albert.catwhisker.org> References: <20130903192734.GA19406@albert.catwhisker.org> <979862494.17918795.1378299005617.JavaMail.root@uoguelph.ca> <20130904222004.GD1577@albert.catwhisker.org> Date: Wed, 4 Sep 2013 15:25:59 -0700 X-Google-Sender-Auth: M-KIqQvA8XeEEflzHwTydJlXl4Q Message-ID: Subject: Re: TSO and FreeBSD vs Linux From: Adrian Chadd To: David Wolfskill Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:26:02 -0000 What's netstat -sp tcp show before/after the test? -adrian On 4 September 2013 15:20, David Wolfskill wrote: > On Wed, Sep 04, 2013 at 03:03:12PM -0700, Adrian Chadd wrote: > > Hiya, > > > > David - can you put together a minimal test case that others can > reproduce? > > 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=1. > * 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 > -- > 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. >