From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 3EF5320F for ; Thu, 11 May 2017 16:22:09 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 May 2017 07:22:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,324,1491289200"; d="scan'208";a="259921171" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga004.fm.intel.com with ESMTP; 11 May 2017 07:22:08 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 11 May 2017 15:22:07 +0100 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.153]) by IRSMSX156.ger.corp.intel.com ([169.254.3.246]) with mapi id 14.03.0319.002; Thu, 11 May 2017 15:22:07 +0100 From: "Kusztal, ArkadiuszX" To: "Trahe, Fiona" , "dev@dpdk.org" , "Mrozowicz, SlawomirX" CC: "Doherty, Declan" , "Griffin, John" , "De Lara Guarch, Pablo" , "Trahe, Fiona" Thread-Topic: [dpdk-dev] [PATCH] app/crypto-perf: add minimise-offload-cost flag Thread-Index: AQHSyN9aVfcaRsRr/kCwkCtjruwXGKHvMdGg Date: Thu, 11 May 2017 14:22:06 +0000 Message-ID: <80307F746F1522479831AB1253B7024E758DEE@IRSMSX102.ger.corp.intel.com> References: <1494346443-11130-1-git-send-email-fiona.trahe@intel.com> In-Reply-To: <1494346443-11130-1-git-send-email-fiona.trahe@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjkwZmZlMmYtMzc2Ni00ZjY3LTkyZjEtYmUyZGUyMzJiZDcyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjFjTTFtMEN0eVlONk5VQWhjTTZjMFVsaXJHa015N2tTSWNDcjNLeFJSYzg9In0= x-ctpclassification: CTP_IC 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] app/crypto-perf: add minimise-offload-cost flag 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: Thu, 11 May 2017 14:22:10 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Fiona Trahe > Sent: Tuesday, May 09, 2017 5:14 PM > To: dev@dpdk.org; Mrozowicz, SlawomirX > > Cc: Doherty, Declan ; Griffin, John > ; De Lara Guarch, Pablo > ; Trahe, Fiona > Subject: [dpdk-dev] [PATCH] app/crypto-perf: add minimise-offload-cost fl= ag >=20 > The throughput test enqueues and dequeues bursts of operations > to the device. For software devices the full burst size will > usually be successfully en/dequeued, on hardware devices > however the CPU can call the API more frequently than necessary, > as it has nothing else to do. > Minimum offload cost is achieved when the specified > burst_size is en/dequeued. So rather than > wasting CPU cycles continually retrying, with a > fraction of the burst being en/dequeued each time, > fewer CPU cycles are used by backing off until a full > burst can be enqueued. >=20 > This patch adds a --minimise-offload-cost flag. > When set the test backs off until full bursts are > en/dequeued and counts the cycles while waiting. > These cycles represent cycles saved by > offloading, which in a real application are > available for other work. Hence these cycles are > deducted from the total cycle-count to show the > minimum offload-cost which can be acheived. >=20 > Signed-off-by: Fiona Trahe > --- > app/test-crypto-perf/cperf_options.h | 2 + > app/test-crypto-perf/cperf_options_parsing.c | 12 +++++ > app/test-crypto-perf/cperf_test_throughput.c | 76 > ++++++++++++++++++++++------ > 3 files changed, 75 insertions(+), 15 deletions(-) >=20 > diff --git a/app/test-crypto-perf/cperf_options.h b/app/test-crypto- > perf/cperf_options.h > index b928c58..48ca1de 100644 > --- a/app/test-crypto-perf/cperf_options.h > +++ b/app/test-crypto-perf/cperf_options.h > @@ -31,6 +31,7 @@ > -- > 2.5.0 Acked-by: Arek Kusztal