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 750862C1A for ; Wed, 12 Jul 2017 15:02:47 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2017 06:02:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,349,1496127600"; d="scan'208";a="110446753" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga002.jf.intel.com with ESMTP; 12 Jul 2017 06:02:19 -0700 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.242]) by IRSMSX107.ger.corp.intel.com ([169.254.10.129]) with mapi id 14.03.0319.002; Wed, 12 Jul 2017 14:02:17 +0100 From: "Trahe, Fiona" To: "dev@dpdk.org" , "Mrozowicz, SlawomirX" CC: "Doherty, Declan" , "Griffin, John" , "De Lara Guarch, Pablo" , "Trahe, Fiona" Thread-Topic: [PATCH] app/crypto-perf: add minimise-offload-cost flag Thread-Index: AQHSyN9RW6OFVpJmLE2Nddtjqw5Qz6JQi4Lw Date: Wed, 12 Jul 2017 13:02:17 +0000 Message-ID: <348A99DA5F5B7549AA880327E580B435892350C8@IRSMSX101.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-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWYyYTY1ZjQtY2RiZi00YjFjLTk5NDQtODZlZTBiNWU2MDViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InJZcHdoMGE2MzJFR0V2d2dKN2dsTDdUY1FSTVlWY0VVUHdcLzNYYVBjK1dJPSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action 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: Wed, 12 Jul 2017 13:02:49 -0000 > -----Original Message----- > From: Trahe, Fiona > Sent: Tuesday, May 9, 2017 5:14 PM > To: dev@dpdk.org; Mrozowicz, SlawomirX > Cc: Doherty, Declan ; Griffin, John ; De Lara Guarch, > Pablo ; Trahe, Fiona > Subject: [PATCH] app/crypto-perf: add minimise-offload-cost flag >=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 Self-nack As we're intending to push a better way to measure HW offload cost in next = release.