Received: with ECARTIS (v1.0.0; list netdev); Fri, 08 Jul 2005 08:37:11 -0700 (PDT) Received: from omx1.americas.sgi.com (omx1-ext.sgi.com [192.48.179.11]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j68Fb7H9024525 for ; Fri, 8 Jul 2005 08:37:07 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by omx1.americas.sgi.com (8.12.10/8.12.9/linux-outbound_gateway-1.1) with ESMTP id j68FZTxT011238 for ; Fri, 8 Jul 2005 10:35:30 -0500 Received: from [192.168.2.20] (mtv-vpn-sw-corp-0-42.corp.sgi.com [134.15.0.42]) by cthulhu.engr.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id j68FZSdP45758656; Fri, 8 Jul 2005 08:35:28 -0700 (PDT) Date: Fri, 8 Jul 2005 08:31:21 -0700 (PDT) From: Arthur Kepner X-X-Sender: akepner@resonance.WorkGroup To: Raghavendra Koushik cc: jgarzik@pobox.com, netdev@oss.sgi.com, netdev@vger.kernel.org, ravinandan.arakali@neterion.com, leonid.grossman@neterion.com, rapuru.sriram@neterion.com Subject: RE: [PATCH 2.6.12.1 5/12] S2io: Performance improvements In-Reply-To: <200507080106.j6816NKP022996@guinness.s2io.com> Message-ID: References: <200507080106.j6816NKP022996@guinness.s2io.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 2701 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: akepner@sgi.com Precedence: bulk X-list: netdev Content-Length: 1302 Lines: 37 On Thu, 7 Jul 2005, Raghavendra Koushik wrote: > .... > On an Altix machine I believe the readq was necessary to flush > the PIO writes. How long did you run the tests? I had seen > in long duration tests that an occasional write > (TXDL control word and the address) would be missed and the xmit > Get's stuck. > The most recent tests I did used pktgen, and they ran for a total time of ~.5 hours (changing pkt_size every 30 seconds or so). The pktgen tests and other tests (like nttcp) have been run several times, so I've exercised the card for a total of several hours without any problems. > > > > > FWIW, I've done quite a few performance measurements with the patch > > I posted earlier, and it's worked well. For 1500 byte mtus throughput > > goes up by ~20%. Is even the mmiowb() unnecessary? > > > > Was this on 2.4 kernel because I think the readq would not have a > significant impact on 2.6 kernels due to TSO. > (with TSO on the number of packets that actually enter the > Xmit routine would be reduced apprx 40 times). > ..... This was with a 2.6 kernel (with TSO on). PIO reads are pretty expensive on Altix, so eliminating them really helps us. For big mtus (>=4KBytes) the benefit of replacing the readq() with mmiowb() in s2io_xmit() is negligible. -- Arthur