From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id E6F48F04 for ; Wed, 20 Sep 2017 16:07:19 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 20 Sep 2017 07:07:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,421,1500966000"; d="scan'208";a="154044100" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga006.fm.intel.com with ESMTP; 20 Sep 2017 07:07:18 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 20 Sep 2017 15:04:52 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by irsmsx111.ger.corp.intel.com ([169.254.2.30]) with mapi id 14.03.0319.002; Wed, 20 Sep 2017 15:04:51 +0100 From: "De Lara Guarch, Pablo" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Doherty, Declan" Thread-Topic: [PATCH v2 0/2] New crypto acceleration benchmark mode Thread-Index: AQHTK6qlo/UOoivi60CqE8Jz7Xj3zaK92qqw Date: Wed, 20 Sep 2017 14:04:50 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzA0ZWJhZTUtZGY2Yi00NTFlLTkxZjYtZGZhOWU1OTgyNGQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ill6MjR5anZPV05zR0c3M2h3ZlEwc0RcL1p2MEg3T21BeGo4eGVcL0tPZGk1UT0ifQ== x-ctpclassification: CTP_IC 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 v2 0/2] New crypto acceleration benchmark 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: Wed, 20 Sep 2017 14:07:20 -0000 > -----Original Message----- > From: Burakov, Anatoly > Sent: Tuesday, September 12, 2017 10:36 AM > To: dev@dpdk.org > Cc: Doherty, Declan ; De Lara Guarch, Pablo > > Subject: [PATCH v2 0/2] New crypto acceleration benchmark mode >=20 > This patchset adds a new "PMD cyclecount" test mode for test-crypto-perf > application. This mode is intended to measure hardware acceleration cost > (in terms of cycle count) more accurately than throughput test. >=20 > The general idea is the following: > - Measure build-alloc-free cycle separately > - Alloc and build ops > - Measure completely filling up the TX ring > - Wait until ops are processed > - Measure completely draining the RX ring > - Free all allocated ops >=20 > In order to make measurements more accurate, the enqueue/dequeue is > still done in bursts of specified size, but all of the bursts are now par= t of a > "superburst" of size equal to number of descriptors configured for the > device. So, if the number of descriptors configured was 2048 (the default= ), > then 2048 ops will be enqueued and dequeued, in bursts of size specified = by > test command line. >=20 > The following command-line switch will run the test: > --ptest=3Dpmd-cyclecount >=20 > In addition to a new mode, two mode command line switches are added: > - --desc-nb - configure number of cryptodev descriptors. This value was > previously hardcoded to 2048, but is now configurable and set > to 2048 by default (so existing behavior is unchanged). > - --pmd-cyclecount-delay-ms - pmd-cyclecount-specific parameter that > configures the delay (in milliseconds) between TX and RX > superbursts, to allow hardware to process ops. Set to 0 by > default, and it is expected that each user will tune it for > every device. This has no effect on other benchmark modes. >=20 > PMD cyclecount mode can be used to benchmark software cryptodev > drivers as well, but the results will be far less accurate for smaller bu= rst > sizes. >=20 > v2: squashed documentation patches into relevant commits > fixed documentation > fixed commit messages > formatting and naming fixes >=20 > Anatoly Burakov (2): > app/crypto-perf: add nb-desc parameter > app/crypto-perf: add new PMD benchmarking mode >=20 > app/test-crypto-perf/Makefile | 1 + > app/test-crypto-perf/cperf_options.h | 10 +- > app/test-crypto-perf/cperf_options_parsing.c | 54 ++ > app/test-crypto-perf/cperf_test_pmd_cyclecount.c | 675 > +++++++++++++++++++++++ app/test-crypto- > perf/cperf_test_pmd_cyclecount.h | 61 ++ > app/test-crypto-perf/main.c | 11 +- > doc/guides/rel_notes/release_17_11.rst | 6 + > doc/guides/tools/cryptoperf.rst | 14 +- > 8 files changed, 828 insertions(+), 4 deletions(-) create mode 100644 > app/test-crypto-perf/cperf_test_pmd_cyclecount.c > create mode 100644 app/test-crypto-perf/cperf_test_pmd_cyclecount.h >=20 > -- > 2.7.4 Applied to dpdk-next-crypto. I think it will be a good idea to extend the documentation and explain more= in detail the different modes that the application offers, before the release is out. Thanks, Pablo