From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by dpdk.org (Postfix) with ESMTP id D4A361B16F for ; Wed, 10 Jan 2018 21:01:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xofTyNOK9qRT4JUvDyTBA946klSZiBoifw8UIyiDVcY=; b=f6roTJx5QPNQJynA/aS0X3o1YmaQkSb9wcVsPXqy6Zr5ZcTVfhhFuTwWQG8fAjIks/MWiQjsB0MVhhdqvsUWibaTdlh6FMW+2VPyWMVFx1DjT99bK+T/ZgnpGHtx7VYjlM0lHMTT7cotZlVJ87A/b+gfS+Trzgm6o0lK3/wcezk= Received: from Pavan-LT (103.16.71.47) by CY4PR07MB3463.namprd07.prod.outlook.com (10.171.252.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Wed, 10 Jan 2018 20:01:43 +0000 Date: Thu, 11 Jan 2018 01:31:22 +0530 From: Pavan Nikhilesh To: "Van Haaren, Harry" , "jerin.jacob@caviumnetworks.com" , "santosh.shukla@caviumnetworks.com" , gage.eads@intel.com, "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "Ma, Liang J" Cc: dev@dpdk.org Message-ID: <20180110200121.sfcs6o73q4tsupmi@Pavan-LT> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20180110145144.28403-1-pbhagavatula@caviumnetworks.com> <20180110145144.28403-8-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: HK2PR02CA0162.apcprd02.prod.outlook.com (10.171.30.22) To CY4PR07MB3463.namprd07.prod.outlook.com (10.171.252.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e735042d-0bbf-43b7-3da9-08d55864fad5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020055)(4652020)(5600026)(4604075)(4534085)(4602075)(4627181)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3463; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 3:Kohd7AiIxxY6+jA8FKW2ssFOBOadcGlN4TbxIvDvenKO6tzkFeSGJhXVBr8JcHfKf9OcXh6xa+4sPZhDMjcRugWjtu4nZYX5fZqMef71eJ7OlA8zmAHbBqD9tK1FcCV+eTJeRmMXR5tBtwpIcafsxQuz8eyRzZZnKGVyGd3rLBr/nvwwmvfe7Xzx4jfpNn1u7T9oBZng+JepRixWU+VFVT1ZtslaENgCXaOU5rPQqFn/toNsKMpKRUtnBSH3qRVa; 25:BPuVwFEH8TAKefhy0PHQ9gJt6ArrAAP5+VIpNvaEU7Dk+YvE7edpILpvSOtkp2QogmTQRtqLrxUCFhH2tkueFoZE72rBMB32RxydTw5nwhIghX26JJBS0tmEQshkr4VySnRfwQLp5hxy+HuUEmUQq16nkW7GdnyydlGL34lA2x0z51xku/YeHFsarihsg2JCzAQScEgbm3/Pni4VaFR3XFuLbwBvV96UJNON+79lQnNmyEHCc/1bJczVs1f01wEkjaRhkKt2PJo9U1utWtjG/D0R3jgLI66GjWENv9INes4J5OhZj6Q7a6bMDVlnFnk2eWH/8j5tj7Qu+o+ay7i6Kw==; 31:BYnE/j3nnwRqoYaZKIBWrBY9pjSQ1uIcVkj4mOzI+fhVMK0vsAQR1p00IklZsmaJ4Au7o5NSUiVvPTitoz2SuAFSE72n7yR5BE/JaNiM6jnWNCTSeSi3bI/sEq7PDEe1jztyg29V6Z2re3F2roawNYUX9raEljFfv9ygy+5XvVIqA/v719BMxwh0bty0JRQU2jeBR3XdB9iCLbPq1u9ahYfd80pzVxdvHR1Oixcq0Vs= X-MS-TrafficTypeDiagnostic: CY4PR07MB3463: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 20:cI8N0amN4BL8Uy+e2tEmMZkPJQdKghz3w6KyZ7ZvgtsYNVfVjQMkaaG6ex6c54Kk/3F0EvRk+QYCHTw5d+WxokTek7e38F4dXGl4AM7gYPGJDaxVWNNdLr5q7mfOtRsEs22HED1CdxYEhSSAMmjiDhU8RH6/Std5cg5ZKrW+ZCgznpS9Tp4ntQOAXhWuOWWw7feeKgofKqKibX5rXQGlY6AliU9/zGATuU2Je9dOA4GKHw9GNzLVvtelsuseZ4/R/OjgooFTKydhLcLYZ9Af/qLdQWWyiW6Q67AnQdwrAFR7aOe3zVngIdnX4TMCfRCx0rOzGUAgrAlTOBe18ik/R+kxXNOy+PC8D2yRWjYGpE2mSoAF7I0MHWA0m6J07vku8E/eoOdGSviHq27PDWGQy3mTahR68Iq4MuH2WKFatP6ifHfj3tUtsKXj4HQx6nYf3eVRd8PBtPBbmAHqUV/RJA/Sy0XUrGQuUTEeqsfkU+TVM6Hb/YwnvtG79tvsm+rktuj96AxoaghMOwkmoYTklIZROvWZ1T0bvf+C0efW2RRyFB4U87ofHRl3gVrg/uirZG7qr1P9q2V9bNnzo143y3jAAAYQ2YKQRrIq9j+wfg8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(3231023)(944501121)(6041268)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:CY4PR07MB3463; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3463; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 4:7azYkzi0eJAAg2YO2Ua+/ZKrApPcuMucMEH8BXyNkFJHa39cMyUxR+GkwMvQ0aGsv4ae95VWJHttH2G9Ie+Ej4MYamSo758coxIQU6YZkx9TTYpAPjVWFZUE9kDjTMP3c5AtO345clkJY6xClfFlhAGC+2Gz04X51c+D3vSVSXwnUheGAEHxbrCH37Alb43xIZkLNPjLnlGedtlyA/mXi+onkN04oS/3fbLGIDnAQuvR/aFWX6eAE5auA7ABFKZjuwThnyP/0klyeT1L1arFTG6o3xeOBE6Nk+AWL2YZiQ54FMw8h4xLeZNPHY+rAcIeimTBS7B1Gq/wcoyE5SDx1Q== X-Forefront-PRVS: 0548586081 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39860400002)(39380400002)(396003)(51914003)(189003)(199004)(24454002)(6246003)(316002)(386003)(93886005)(97736004)(8676002)(16526018)(66066001)(33716001)(81156014)(53546011)(4326008)(58126008)(50466002)(81166006)(47776003)(16586007)(72206003)(110136005)(2501003)(229853002)(6666003)(6496006)(3846002)(68736007)(83506002)(8936002)(106356001)(76176011)(23726003)(2201001)(6116002)(53936002)(1076002)(25786009)(55016002)(52116002)(9686003)(105586002)(7736002)(2950100002)(478600001)(2906002)(42882006)(8656006)(5660300001)(305945005)(33896004)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3463; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3463; 23:EpPBHR9oRXc36enmaVCWeMHRXo71PuylT7Nq8DbHc?= =?us-ascii?Q?poldySWUTPczl4T9x5SSINHxedfP+tTE76drA4zylN1AF1t8ZDGOexB4LiWv?= =?us-ascii?Q?xmRjIaYa2abWZJT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rsU1Pn+LWOdW1QpPCiaiNV+ut6jXcRAx2IBUcug3Ium9k27FZqoe2SNkdDFOEQVZXAAtWs1vGg/5fWdE7zzFRmWo=; 7:un+sfb93pbC4QoccSrvfJt6snu9IL4bKwQs6bKoTF0gtyEcLvx7vuEA8JPH4GgWvsZVvt16OGiIh/ZMicRvyN1Zd4zPsbIx9j43aJLqEGQYiNvahkAlAI46qwFB3HIc3EmU0PjoBWj3KPYcn3qKVMESflnE1fEZdGK+Xmwp79JgUhlcFodYXocN0eHyk0RfHU8Nr++dfayBIlybYceh8RZr9OzqWydoQWx/QyYZ2fGEH1P8FchfVAQ2qGhFWQ4zR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2018 20:01:43.8858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e735042d-0bbf-43b7-3da9-08d55864fad5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3463 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: Wed, 10 Jan 2018 20:01:49 -0000 Hi Harry, Thanks for the review. 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; Ma, > > 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 understand below. > 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. for example, nb_stages = 2 and nb_ethdev = 2 then nb_queues = (2 * 2) + 2 = 6 (non atq) stride = 3 (nb_stages + 1 used for directing each ethernet dev traffic into a specific event queue) queue id's 0,1,2,3,4,5 This allows us to direct the traffic from eth dev0 to event queue 0 and dev1 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 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. Hope this clears things up. > > > > > Note: The --prod_type_ethdev is mandatory for running the application. > > Mandatory arguments seem pointless to me, unless there are other valid options to choose from. > In future we might have --prod_type_event_timer_adptr and --prod_type_cryptodev :-) Cheers, Pavan > > > + > > +static int > > +pipeline_queue_eventdev_setup(struct evt_test *test, struct evt_options > > *opt) > > +{ > > + int ret; > > + int nb_ports; > > + int nb_queues; > > + int nb_stages = opt->nb_stages; > > + uint8_t queue; > > + struct rte_event_dev_info info; > > + > > + nb_ports = evt_nr_active_lcores(opt->wlcores); > > + nb_queues = rte_eth_dev_count() * (nb_stages); > > > As per comment above, this is what I don't understand? Why more queues than stages?