From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by dpdk.org (Postfix) with ESMTP id 8D1247CFC for ; Fri, 2 Jun 2017 14:22:10 +0200 (CEST) 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=h1coHddkUSIdOXPIgz/p6p6IDMx1WqGxiYB/FW9ma8Q=; b=nXM0w6RICVmopdDOXj+R7QZxdafwJD6btShman3FwfwXk3PMU6BqGmMAO218Elh+ivSpBp5SO7XMJMLwkSn+24fNQ9sPJV48RZUWb6JeF9nWQJa796OsVqZ236YQBM7iKXlAnBFxiXzOqAWz9MTj0azvXqdsZ+KPqUmyIjqbPCI= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 2 Jun 2017 12:22:06 +0000 Date: Fri, 2 Jun 2017 17:51:48 +0530 From: Jerin Jacob To: "Eads, Gage" Cc: "dev@dpdk.org" , "Richardson, Bruce" , "Van Haaren, Harry" , "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "Vangati, Narender" , "Rao, Nikhil" , "gprathyusha@caviumnetworks.com" Message-ID: <20170602122148.GB10169@jerin> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> <20170528195854.6064-26-jerin.jacob@caviumnetworks.com> <9184057F7FC11744A2107296B6B8EB1E01EC6753@FMSMSX108.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9184057F7FC11744A2107296B6B8EB1E01EC6753@FMSMSX108.amr.corp.intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (10.174.144.11) To BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1716: X-MS-Office365-Filtering-Correlation-Id: 913b0388-3033-48c0-9fe6-08d4a9b1fd6b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:0hqEgFkXoCJPsbTzyde+7lzQHW0OlFsNIvwhvvLWdnsC3RvIWMYI7kuFoID7LjEu+zPl/cCRaiwKwZcnMZORyal1kMRsbIn5PSt0DVx5mh/xgNaUltp1CAgn53aR3VG+VNutltYm634GFidyxXqJOurJeAotDoihgaNI4ivWQ6UaAgjhv4rLuUOT59a5+gOiqTlBc0GfmAGu4in/oZEMsd8lHs8+LfHrrdD3QOmnfgioa4VYalUxcnbPUNeaAt31Z+EXY7Ow21Hat/SjzzyecQTnhpP4lLwD9OkTYSYPl6LwuSf9Fp1hOWVolJvIK2oFqEpekPBNKNTr76hNnmir5A==; 25:0AKxOxJ1yQ7ORIIPDy07fVA7l13YX6gh7TgBqSlktz0BiiGlhbXVNBLFj9TzRs0UxPvaZ9eqpgmitxqeGz/LxiicrzuYD0GaT0v1iJgfve3AetPB7yastdWdj1JhJ1PqjSHgNj4t0j3tcgv/Z8kt7ptTDx+F14QISraN/rTfAmSIw5wJoWQZNAaTBiza94fhxoLEhzoY6vAnm9alivW+VrYTvG0Ik6sZjFLK1DqAdYjgWQOUMqSqkcsghS/O6/Q0rbO/y+Fhp5IdJH7FBE0+JUCub02snVF4iVey/INwNsPmxy3gnRpjPnnj7IYQjeJQ829mkfiLiwjcbHCeatq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Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 4:yZ2uL59wGTdzwYEcYZoigTosGjkY/jeYrbo+K1Va?= =?us-ascii?Q?gyvfyTRkXwaW3Z2qmGT9t6qiHPOmgPQKmXIepKxioEZ7DaOAZRBpFDb5y/Qx?= =?us-ascii?Q?61LheVZDtQpd6zK5FjyvOayYFHJPor1rtFqRRrgfpOjpcFwfSdlYuJ2Ndspz?= =?us-ascii?Q?EIebaxJgSzZpaUTdTJMr9TOGschMIjWBk660tluSKXJJ1lV5J/TlTaOTPnaY?= =?us-ascii?Q?U+vb76WeFVc51HqlZRxBdDWeOyGXOQyKMzibywnBu2kEnxQ80zAsXebmLFmN?= =?us-ascii?Q?Q8cd4eBnBlkAHTG07KqADBPV0TYRP/2ltEHC+Aa7tP44UZ3tCAY0V6iImHcB?= =?us-ascii?Q?0CWnpZOk9D+aCcxoWMWXZyh9bGhHrtCbrguBnnwmPs9eavMqpdLKFA4Yid+7?= =?us-ascii?Q?Hf1hBeLuU1HdUMuHoVc5tQYUfDkqmYjWxtt8RwghbLEnPIrLLxqFJSutA4Qg?= =?us-ascii?Q?672NDLWhMMP09Hukj4FCofbLgRz495GZ539B+V9+ppHB9s6Cl585QuWDaVBT?= =?us-ascii?Q?nFS1kHUM9qJEWabgv64xJVeXgr0go4sSWL3DwY6ryiWr1WEctVfjCxPPAT1J?= =?us-ascii?Q?YrAW8ozFcy+v03UkXFViL6HToFjcCCe6xPae83FI6gtf2NlVK7lfgKkXJP1U?= =?us-ascii?Q?y/bV3hQksrMiSQPcROTWxeAeqSsX1KpAQ7anzhs9qrrpOMLrOxNTuphcinu2?= =?us-ascii?Q?fDbxBgAiAg18ta7iG1vJ130jssodauTFKu0QssCmMh36RlJK8GP0jTY72FKz?= =?us-ascii?Q?B9mA2gyapZhUPF9MhTrwD5z7LjU0T8nmACYrmAVRypJbl3hFx7/PeFjWkM2U?= =?us-ascii?Q?7a7VE9LINJZS8HFtZmNKHOzX5YL3ugCbo63pOtRaNzOdM2v0qwNE2Dm9LI3w?= =?us-ascii?Q?YBvlHMM2p37kioRYZdyV2DpApt2LiNdhi2hi9M1hnToP7tdbPguvjFZkUsX2?= =?us-ascii?Q?iyIra74ugmQN4Jm++to5ihdlFtGKNqzxL9lJQF1ElHTckCeSE4QXdv/J1hTJ?= =?us-ascii?Q?q94AG2wma/Hy3gQoI0NfSvaf/A3dDq1eK6/BC6fHjTYTeN5krR1lReVuEz7V?= =?us-ascii?Q?CMNwAvnpvsLM1xxYnUC8Bgla13VJbCxJ8ovI1DC0LNLYOn69ZVON+pccCHF7?= =?us-ascii?Q?OGZEFhtB3ZNMnhDXH25Xr9Sb0HQeHwgg43D3mvH4wOabgt1gTKPmLjQ6Siwk?= =?us-ascii?Q?SXtcBfqGHb98+owsn4by4lx8gu49K49jbh/0?= X-Forefront-PRVS: 03264AEA72 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39410400002)(39400400002)(39840400002)(39450400003)(51234002)(377454003)(13464003)(5009440100003)(42186005)(72206003)(107886003)(110136004)(38730400002)(23726003)(6246003)(25786009)(4326008)(53546009)(6116002)(3846002)(54906002)(9686003)(54356999)(76176999)(50986999)(53936002)(6496005)(8656002)(55016002)(478600001)(81166006)(5660300001)(83506001)(42882006)(6916009)(2950100002)(6666003)(66066001)(8676002)(47776003)(50466002)(229853002)(33716001)(33656002)(4001350100001)(1076002)(189998001)(305945005)(7736002)(2906002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1716; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 23:GoHH5iEL9CuIZOiHUg37Wt9AFp+eAQkw4/ddOBY?= =?us-ascii?Q?KHnXRyrx7KHLWpvcXoSxephJVL34z7keZsF+aofrbP7ajXwxW/DPF8H1YWpO?= =?us-ascii?Q?hhohsdZdu9R2eRdc7NUTvCPyX/RnlJmNUEOEWIPiNGvJFBzGqpgtmw2LR2z3?= =?us-ascii?Q?iBRLoXIs1nO5NbLzS8Pr0Dfs1xwqYIooIUoDDza52PCLn2c8aU/VzrcjuuYA?= =?us-ascii?Q?XyG5wQEYiJ/P0oQK7CKnAXhExVEtASVDf+z1zB10/dPk+bYgrbloqePC4pNw?= =?us-ascii?Q?OL7xSxg4y9bLj2e3y4sBBzxu3YTV678gkjllkY+3OtfC4IULxc5dg0p2MEvP?= =?us-ascii?Q?hP/dzcmvktmxY0GhG6ZirMqtUl3dc3OJXwjNA7jdnVqQ9VrQUFf/+KnSG5MM?= =?us-ascii?Q?2hdqmi7l8VwyZlKRnv3+e4PMeNQRV2GdUmn8tR8kqvV3d8qA1Hb8n2UMOOE1?= =?us-ascii?Q?MYeCAylaq8cnY69DRJbUY02s6VUihvPOLZ+WPA1khHztWl6/pwAXrjPuHtu+?= =?us-ascii?Q?RjehC+Pr/2Ya2f2H5k5RUgBulhjKnjCEtleMbLsuyYrGROYVo7FzhadcU/rJ?= =?us-ascii?Q?mfLuBXgxSIp++85DfYsLZf2BmsJYznHrrfJ3w1Z1KJYmtCnjUrdaXYEnZytA?= =?us-ascii?Q?KbSca/eO2UH7/VFYt108Dwl01S3alr9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Q8scvOx1sp4ZOTbzURqcW71wTc2l78OFm+TNDihbHyDfg07djTzi3tsmPs35FFILL3fI5S7d84CD5aNw6sDSJu479KgiHj6a+tiJDaELW9mq43hzJog3n1pHZLEKNQw4kRAzH1fcpHfZqpAL2qztPLRs0vOjR12d8Nq/dxTwxEAnmNsrxitKi4buyXgFijzaFBtuZIYsUfPAfxzw+ahvcLjJfPf6gbW/ttRRWUOQ8oqfVvvDWXs9cWTjJIbcrZmQALmQh/dk1rwiBTuM7ihJSMjvxkdAlZtw5sfkzUAF/GcKidd8E7UyLFIRzRxeYtQh9ASdyyiflwoeu8jspA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:ZSnZMxHw0TtPQ7Ogkw5qtJwrH7wgMd4XeIHoq7TX5saXlA/9va7fCIPzhvI9+B+H92UFE46HL5wQJoTf372q6kj1iI11YMmdCEQ+L3FzvPahqkpzUC105eXktJQaYh1ow09yYttBaMjxhDyCQbNrDMKTQbTt93F1FPgC9a7N4uG/jufizmYKbsKKFP2dWl4rVPIx5SjyEYu9gLkDJ0AD4y8TCjdm3nWZaQ+iAWFkz92d4IDq3soNwR343Kh1Celrl/+L3nbqqpgItLggWebvZOJyJR9wlx3S9F2ELpeKEkQcLTDY1awNrqGw/Zduzw9VMuhbvkcxH0uhJmls/5MvrgleFPYOW2sTGSuQNWiqrgKHZcSb6DuyO/m3+0WpBzQOYz5Kgv3bXJbtfWTw6DCF8Kt467e2jWcFs+/pfB91Exk2CMFf7+7TFeEp5Lt6JGjHCVoNyAAyKbA4IAO2nDLcfBPbRefV+hw9mgU1ITBCOeD4UZFr37ARt4mfwHXXca9J; 24:Q92X/QfrOkBVkN0q+GQGBP0zSl60LYuSqXfQ2vLhaparbAXocnqQ4ExlVvk4Hc21mfSoWw45KeWAU4Oj2I7GhnT4UsdORPSG9tLGdEr+Ctk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:jNNpEtVl5bBSCBZ5xtzx+BAcuirfgDFHTO+iRoqm8V1K1nXY/PuVRTgpLvrTZExLMam0/lxTZuAFQMezJ5zx1brnGKF85Y28GXZouYjdw3MN/pFki7BFPAE7ETT+FAqiXZO+UUYuwV5iyfom+H39cmzn9XYWw7Wqd+67c1V/SZEXD64KEkL0WLaBYF6L24CvCOXQ+WUThW/a0IHeJyDmrtgsy9OVmxO5EgLodilA6oXb6RqJMBxX2wB6MWtfnYhDk6zB4aVhSgkkbC0eM3nxrlUNsAGsPOSoaPG9WeAd8JvLg1tu58TICPnHKGIt5K+AUDd55BCSR6C9gbiPHdim1A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 12:22:06.6403 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: Re: [dpdk-dev] [PATCH 25/33] app/testeventdev: perf queue: add worker functions 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: Fri, 02 Jun 2017 12:22:11 -0000 -----Original Message----- > Date: Thu, 1 Jun 2017 21:04:15 +0000 > From: "Eads, Gage" > To: Jerin Jacob , "dev@dpdk.org" > > CC: "Richardson, Bruce" , "Van Haaren, Harry" > , "hemant.agrawal@nxp.com" > , "nipun.gupta@nxp.com" , > "Vangati, Narender" , "Rao, Nikhil" > , "gprathyusha@caviumnetworks.com" > > Subject: RE: [dpdk-dev] [PATCH 25/33] app/testeventdev: perf queue: add > worker functions > > > > > -----Original Message----- > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Sunday, May 28, 2017 2:59 PM > > To: dev@dpdk.org > > Cc: Richardson, Bruce ; Van Haaren, Harry > > ; hemant.agrawal@nxp.com; Eads, Gage > > ; nipun.gupta@nxp.com; Vangati, Narender > > ; Rao, Nikhil ; > > gprathyusha@caviumnetworks.com; Jerin Jacob > > > > Subject: [dpdk-dev] [PATCH 25/33] app/testeventdev: perf queue: add worker > > functions > > > > Signed-off-by: Jerin Jacob > > --- > > app/test-eventdev/test_perf_common.h | 60 +++++++++++++++ app/test- > > eventdev/test_perf_queue.c | 137 +++++++++++++++++++++++++++++++++++ > > 2 files changed, 197 insertions(+) > > > > diff --git a/app/test-eventdev/test_perf_common.h b/app/test- > > eventdev/test_perf_common.h > > index f8246953a..9888e5078 100644 > > --- a/app/test-eventdev/test_perf_common.h > > +++ b/app/test-eventdev/test_perf_common.h > > @@ -86,6 +86,66 @@ struct perf_elt { > > uint64_t timestamp; > > } __rte_cache_aligned; > > > > +#define BURST_SIZE 16 > > + > > +#define PERF_WORKER_INIT\ > > + struct worker_data *w = arg;\ > > + struct test_perf *t = w->t;\ > > + struct evt_options *opt = t->opt;\ > > + const uint8_t dev = w->dev_id;\ > > + const uint8_t port = w->port_id;\ > > + uint8_t *const sched_type_list = &t->sched_type_list[0];\ > > + struct rte_mempool *const pool = t->pool;\ > > + const uint8_t nb_stages = t->opt->nb_stages;\ > > + const uint8_t laststage = nb_stages - 1;\ > > + uint8_t cnt = 0;\ > > + void *bufs[16] __rte_cache_aligned;\ > > + int const sz = RTE_DIM(bufs);\ > > + if (opt->verbose_level > 1)\ > > + printf("%s(): lcore %d dev_id %d port=%d\n", __func__,\ > > + rte_lcore_id(), dev, port) > > + > > +static inline __attribute__((always_inline)) int > > +perf_process_last_stage(struct rte_mempool *const pool, > > + struct rte_event *const ev, struct worker_data *const w, > > + void *bufs[], int const buf_sz, uint8_t count) { > > + bufs[count++] = ev->event_ptr; > > + w->processed_pkts++; > > + rte_smp_wmb(); > > + > > + if (unlikely(count == buf_sz)) { > > + count = 0; > > + rte_mempool_put_bulk(pool, bufs, buf_sz); > > + } > > + return count; > > +} > > + > > +static inline __attribute__((always_inline)) uint8_t > > +perf_process_last_stage_latency(struct rte_mempool *const pool, > > + struct rte_event *const ev, struct worker_data *const w, > > + void *bufs[], int const buf_sz, uint8_t count) { > > + uint64_t latency; > > + struct perf_elt *const m = ev->event_ptr; > > + > > + bufs[count++] = ev->event_ptr; > > + w->processed_pkts++; > > + > > + if (unlikely(count == buf_sz)) { > > + count = 0; > > + latency = rte_get_timer_cycles() - m->timestamp; > > + rte_mempool_put_bulk(pool, bufs, buf_sz); > > + } else { > > + latency = rte_get_timer_cycles() - m->timestamp; > > + } > > + > > + w->latency += latency; > > + rte_smp_wmb(); > > + return count; > > +} > > What purpose does the store barrier serve in these two functions? The master core(!worker core) reads w->latency and w->processed_pkts periodically from all workers.