From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6488C1F5 for ; Wed, 28 Jan 2015 15:14:43 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 28 Jan 2015 06:11:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,481,1418112000"; d="scan'208";a="669068196" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga002.fm.intel.com with ESMTP; 28 Jan 2015 06:14:40 -0800 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.28]) by IRSMSX101.ger.corp.intel.com ([169.254.1.245]) with mapi id 14.03.0195.001; Wed, 28 Jan 2015 14:14:38 +0000 From: "Wodkowski, PawelX" To: Alexandre Frigon , "dev@dpdk.org" , "keith.wiles@windriver.com" Thread-Topic: Pktgen-DPDK rate and traffic inconsistency problem Thread-Index: AdA6TAAeo7ZX5X/gQHqE2Z04+NrY+AAthovA Date: Wed, 28 Jan 2015 14:14:38 +0000 Message-ID: References: <3C433001F624134981FFEE5BA9665CCC081157@eusaamb107.ericsson.se> In-Reply-To: <3C433001F624134981FFEE5BA9665CCC081157@eusaamb107.ericsson.se> Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 14:14:43 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Alexandre Frigon > Sent: Tuesday, January 27, 2015 8:31 PM > To: dev@dpdk.org > Subject: [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem >=20 > Hi all, >=20 > I'm using dpdk 1.8 and pktgen-dpdk 2.8 to generate traffic on a back-to-= back > setup both equipped with 82599EB 10-Gigabit NIC. > The problem is when I start it, pktgen indicates 10000Mbits/s Tx with 64B= packet > size, but I'm receiving about 15% of it on the other end. > This percentage seems to be proportional with the packet size. >=20 > e.g. > Using nload to read Rx traffic > Pktgen: Tx: 10000Mbits/s =3D=3D> Other end: Rx 1660 Mbits/s > Rate: 100% > Pkt size: 64B >=20 >=20 > e.g 2 > Pktgen: Tx: 10000Mbits/s =3D=3D> Other end: Rx 9385 Mbits/s > Rate: 100% > Pkt size: 1518B >=20 >=20 > Pktgen is started with this command on a Xeon(R) CPU E31270 @ 3.40GHz > ./app/pktgen -c 1f -n 3 --proc-type auto --socket-mem 1024 --file-prefix = pg -- -p > 0x3 -P -N -m "[1:3].0, [2:4].1" >>From past experience I don't assign more than 1 core per port. It had some race conditions issues and one core I capable to RX or TX full 10G. Also check if you assign proper cores/memory for your NICs (the same NUMA node). >=20 > Is there something I'm not configuring correctly or something I have miss= ? >=20 > Also, the % rate is acting strangely since anything above 50% doesn't ch= ange > the Tx rate and anything below is modifying it > e.g Tx: 10000Mbits/s 5000Mbits/s > %Rate: >=3D50% 25% >=20 >=20 Actually I am getting exactly opposite results :) If I set rate to 50% I get MBits/s Rx/Tx : 0/9942 9942/0 9942/9942 For 10%: MBits/s Rx/Tx : 0/1997 1997/0 1997/1997 Which is about 2x set :D Additionaly I am getting message when "start 0" -> "stop 0" -> "start 0" is= issued PMD: ixgbe_dev_rx_init(): forcing scatter mode So there is definitely something wrong there but don't know where. Another issue I encountered is build system that fail when building out-of-= tree. Till this is fixed you can try version 2.7.1 that is working for me. Pawel