From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH v3 1/6] net: pad skb data and shinfo as a whole rather than individually Date: Tue, 31 Jan 2012 15:45:40 +0100 Message-ID: <1328021140.2297.10.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> References: <1327494389.24561.316.camel@zakaz.uk.xensource.com> <1327494434-21566-1-git-send-email-ian.campbell@citrix.com> <1327495879.2425.29.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <1327496953.24561.323.camel@zakaz.uk.xensource.com> <1327497157.2425.34.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <1328020528.26983.396.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "netdev@vger.kernel.org" , "David S. Miller" To: Ian Campbell Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:41348 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753490Ab2AaOpo (ORCPT ); Tue, 31 Jan 2012 09:45:44 -0500 Received: by bkcjm19 with SMTP id jm19so18455bkc.19 for ; Tue, 31 Jan 2012 06:45:43 -0800 (PST) In-Reply-To: <1328020528.26983.396.camel@zakaz.uk.xensource.com> Sender: netdev-owner@vger.kernel.org List-ID: Le mardi 31 janvier 2012 =C3=A0 14:35 +0000, Ian Campbell a =C3=A9crit = : > Hi Eric, >=20 > On Wed, 2012-01-25 at 13:12 +0000, Eric Dumazet wrote: > > Le mercredi 25 janvier 2012 =C3=A0 13:09 +0000, Ian Campbell a =C3=A9= crit : > >=20 > > > Can you elaborate on the specific benchmark you used there? > >=20 > > One machine was sending udp frames on my target (using pktgen) > >=20 > > Target was running a mono threaded udp receiver (one socket) >=20 > I've been playing with pktgen and I'm seeing more like 81,600-81,800 = pps > from a UDP transmitter, measuring on the rx side using "bwm-ng -u > packets" and sinking the traffic with "nc -l -u -p 9 > /dev/null". Th= e > numbers are the same with or without this series. >=20 > You mentioned numbers in the 820pps region -- is that really kilo-pps > (in which case I'm an order of magnitude down) or actually 820pps (in > which case I'm somehow a couple of orders of magnitude up). >=20 > I'm using a single NIC transmitter, no delay, 1000000 clones of each = skb > and I've tried 60 and 1500 byte packets. In the 60 byte case I see mo= re > like 50k pps >=20 > I'm in the process of setting up a receiver with a bnx2 but in the > meantime I feel like I'm making some obvious or fundamental flaw in m= y > method... >=20 > Any tips greatly appreciated. I confirm I reach 820.000 packets per second, on a Gigabit link. Sender can easily reach line rate (more than 1.000.000 packets per second) Check how many packet drops you have on receiver ? ifconfig eth0 or "ethtool -S eth0"