From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id AAC232C2E for ; Mon, 15 Jan 2018 11:17:54 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2018 02:17:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,363,1511856000"; d="scan'208";a="195462171" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by fmsmga005.fm.intel.com with ESMTP; 15 Jan 2018 02:17:52 -0800 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX107.ger.corp.intel.com (163.33.3.99) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 15 Jan 2018 10:17:51 +0000 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.180]) by irsmsx111.ger.corp.intel.com ([169.254.2.30]) with mapi id 14.03.0319.002; Mon, 15 Jan 2018 10:17:51 +0000 From: "Van Haaren, Harry" To: 'Pavan Nikhilesh' , "jerin.jacob@caviumnetworks.com" , "santosh.shukla@caviumnetworks.com" , "Eads, Gage" , "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "Ma, Liang J" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 08/12] app/eventdev: add pipeline queue test Thread-Index: AQHTiiK4h9wSdbpOqUCx+S46GEP66aNtTFFggAA6/ACAASlcsA== Date: Mon, 15 Jan 2018 10:17:50 +0000 Message-ID: References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20180110145144.28403-1-pbhagavatula@caviumnetworks.com> <20180110145144.28403-8-pbhagavatula@caviumnetworks.com> <20180110200121.sfcs6o73q4tsupmi@Pavan-LT> In-Reply-To: <20180110200121.sfcs6o73q4tsupmi@Pavan-LT> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjRhNzQxNjktZmM5ZS00M2M1LWE3MDEtMjk3MWE2ZWQ1ZWE2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InlCWTNPeUJ3UWJMa0s0TGMzMG1hN3ZHN3VKSVFZdEdZU1E3NENyckNUMjA9In0= dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action 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] [PATCH v3 08/12] app/eventdev: add pipeline queue test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 10:17:55 -0000 > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > Sent: Wednesday, January 10, 2018 8:01 PM > To: Van Haaren, Harry ; > jerin.jacob@caviumnetworks.com; santosh.shukla@caviumnetworks.com; Eads, > Gage ; hemant.agrawal@nxp.com; nipun.gupta@nxp.com; = Ma, > Liang J > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 08/12] app/eventdev: add pipeline queue > test >=20 > Hi Harry, >=20 > Thanks for the review. >=20 > On Wed, Jan 10, 2018 at 04:38:35PM +0000, Van Haaren, Harry wrote: > > > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > > > Sent: Wednesday, January 10, 2018 2:52 PM > > > To: jerin.jacob@caviumnetworks.com; santosh.shukla@caviumnetworks.com= ; > Van > > > Haaren, Harry ; Eads, Gage > > > ; hemant.agrawal@nxp.com; nipun.gupta@nxp.com; M= a, > > > Liang J > > > Cc: dev@dpdk.org; Pavan Nikhilesh > > > Subject: [dpdk-dev] [PATCH v3 08/12] app/eventdev: add pipeline queue > test > > > > > > This is a pipeline queue test case that aims at testing the following= : > > > 1. Measure the end-to-end performance of an event dev with a ethernet > dev. > > > 2. Maintain packet ordering from Rx to Tx. > > > > > > The pipeline queue test configures the eventdev with Q queues and P > ports, > > > where Q is (nb_ethdev * nb_stages) + nb_ethdev and P is nb_workers. > > > > Why (nb_ethdev * nb_stages) number of Queues? > > > > I had expected if the test is for eventdev with Q queues, P ports, that > that Q number of stages is all that is required, (possibly with +1 for TX > queue, iirc some HW doesn't require the TX Queue). > > > > Am I missing something here? I've left the code snippet I don't underst= and > below. > > >=20 > The idea is to reduce the load on ingress event queue (mapped to ethernet= Rx > queue) > by splitting the traffic across event queues for each ethernet device. >=20 > for example, nb_stages =3D 2 and nb_ethdev =3D 2 then >=20 > nb_queues =3D (2 * 2) + 2 =3D 6 (non atq) > stride =3D 3 (nb_stages + 1 used for directing each ethernet dev traffic > into a specific event queue) >=20 > queue id's 0,1,2,3,4,5 >=20 > This allows us to direct the traffic from eth dev0 to event queue 0 and d= ev1 > to > queue 3 based on the stride (dev_id * stride). This intern forms two > pipelines > ethdev0 0->1->2->tx > ethdev1 3->4->5->tx >=20 > In the absence of this both ethdev0 and ethdev1 would have to inject to = 0th > queue and this leads to more congestion as the number of ethernet devices > increase. >=20 > Hope this clears things up. Ah ok, two parallel pipelines use-case. Makes sense, thanks for explaining. Acked-by: Harry van Haaren