From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 6C4D93989 for ; Mon, 4 Sep 2017 16:26:32 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2017 07:26:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,475,1498546800"; d="scan'208";a="896950005" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by FMSMGA003.fm.intel.com with ESMTP; 04 Sep 2017 07:26:30 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by IRSMSX154.ger.corp.intel.com ([169.254.12.83]) with mapi id 14.03.0319.002; Mon, 4 Sep 2017 15:26:29 +0100 From: "De Lara Guarch, Pablo" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Doherty, Declan" Thread-Topic: [PATCH 3/4] test-crypto-perf: add new PMD benchmarking mode Thread-Index: AQHTHMaYPcI/KQyq4kerzQTaAC0dPKKk2Xgw Date: Mon, 4 Sep 2017 14:26:28 +0000 Message-ID: References: <74e5903a777894da0c170bfdb7e6b1e425503342.1503566892.git.anatoly.burakov@intel.com> In-Reply-To: <74e5903a777894da0c170bfdb7e6b1e425503342.1503566892.git.anatoly.burakov@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 3/4] test-crypto-perf: add new PMD benchmarking mode 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, 04 Sep 2017 14:26:32 -0000 > -----Original Message----- > From: Burakov, Anatoly > Sent: Thursday, August 24, 2017 11:48 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Doherty, > Declan ; Burakov, Anatoly > > Subject: [PATCH 3/4] test-crypto-perf: add new PMD benchmarking mode >=20 > This patch adds a new benchmarking mode, which is intended for > microbenchmarking individual parts of the cryptodev framework, > specifically crypto ops alloc-build-free, cryptodev PMD enqueue and > cryptodev PMD dequeue. >=20 > It works by first benchmarking crypto operation alloc-build-free loop (no > enqueues/dequeues happening), and then benchmarking enqueue and > dequeue separately, by first completely filling up the TX queue, and then > completely draining the RX queue. >=20 > Results are shown as cycle counts per alloc/build/free, PMD enqueue and > PMD dequeue. >=20 > One new test mode is added: "pmd-cyclecount" > (called with --ptest=3Dpmd-cyclecount) >=20 > New command-line argument is also added: > --pmd-cyclecount-delay-ms: this is a pmd-cyclecount-specific parameter > that controls the delay between enqueue and dequeue. This is > useful for benchmarking hardware acceleration, as hardware may > not be able to keep up with enqueued packets. This parameter > can be increased if there are large amounts of dequeue > retries. >=20 > Signed-off-by: Burakov, Anatoly ... > diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-cryp= to- > perf/cperf_options_parsing.c > index f4097d9..42a920f 100644 > --- a/app/test-crypto-perf/cperf_options_parsing.c > +++ b/app/test-crypto-perf/cperf_options_parsing.c ... > static int > @@ -782,6 +804,7 @@ cperf_opts_parse_long(int opt_idx, struct > cperf_options *opts) > { CPERF_AEAD_AAD_SZ, parse_aead_aad_sz }, > { CPERF_DIGEST_SZ, parse_digest_sz }, > { CPERF_CSV, parse_csv_friendly}, > + { CPERF_PMD_CYCLECOUNT_DELAY_MS, > parse_pmd_cyclecount_delay_ms}, Sorry, I missed this one in the previous email. To have a consistent alignment, could you make the name of this macro short= er? Thanks, Pablo