Received: with ECARTIS (v1.0.0; list netdev); Sat, 27 Nov 2004 14:41:56 -0800 (PST) Received: from mx03.cybersurf.com (mx03.cybersurf.com [209.197.145.106]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iARMfn4A023850 for ; Sat, 27 Nov 2004 14:41:49 -0800 Received: from mail.cyberus.ca ([209.197.145.21]) by mx03.cybersurf.com with esmtp (Exim 4.30) id 1CYBFx-0006Ux-Uv for netdev@oss.sgi.com; Sat, 27 Nov 2004 17:41:29 -0500 Received: from cpe0030ab124d2f-cm014500000962.cpe.net.cable.rogers.com ([24.103.99.32] helo=[10.0.0.9]) by mail.cyberus.ca with esmtp (Exim 4.20) id 1CYBFt-0001WD-4d; Sat, 27 Nov 2004 17:41:25 -0500 Subject: Re: packet size vs inter-packet gap From: jamal Reply-To: hadi@cyberus.ca To: Lennert Buytenhek Cc: Robert Olsson , "David S. Miller" , netdev@oss.sgi.com, e1000-devel@lists.sourceforge.net In-Reply-To: <20041127220608.GA29086@xi.wantstofly.org> References: <20041125042244.GA25971@xi.wantstofly.org> <20041126000753.GA3783@xi.wantstofly.org> <1101444584.1091.39.camel@jzny.localdomain> <20041127220608.GA29086@xi.wantstofly.org> Content-Type: text/plain Organization: jamalopolous Message-Id: <1101595280.1044.91.camel@jzny.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 27 Nov 2004 17:41:21 -0500 Content-Transfer-Encoding: 7bit X-archive-position: 12270 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: hadi@cyberus.ca Precedence: bulk X-list: netdev Ah, try that on different pieces of h/ware. i.e 32/33, 64/66 and compare before and after results. You may be suprised by the oddity;-> Actually, why not use patch i supplied? cheers, jamal On Sat, 2004-11-27 at 17:06, Lennert Buytenhek wrote: > (cc'ing netdev and e1000-devel) > > > On Thu, Nov 25, 2004 at 11:49:45PM -0500, jamal wrote: > > > Would be nice to see what happens when you kick the DMA only after > > filling up the ring. > > Just to 'confirm' what you've been seeing, even this tiny little patch: > > diff -urN e1000.orig/e1000_main.c e1000/e1000_main.c > --- e1000.orig/e1000_main.c 2004-11-24 15:35:23.000000000 +0100 > +++ e1000/e1000_main.c 2004-11-27 22:57:08.429782838 +0100 > @@ -1720,7 +1735,9 @@ > wmb(); > > tx_ring->next_to_use = i; > + if ((i % 4) == 0) { > E1000_WRITE_REG(&adapter->hw, TDT, i); > + } > } > > > changes my 60B TX rate numbers from: > 612597pps > 612447pps > 612381pps > 612568pps > 612579pps > > to: > 614158pps > 614179pps > 614186pps > 614169pps > 614171pps > 614150pps > 614180pps > 614163pps > 614179pps > > (As before, 32/66, 82541PI, SMP Xeon 2.4, 2.6.9-something.) 'tis not > much but definitely makes _some_ difference. > > > cheers, > Lennert >