From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 60AE3A0FE4 for ; Wed, 22 May 2019 02:16:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1D1C94CAB; Wed, 22 May 2019 02:16:17 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6B8A84C80; Wed, 22 May 2019 02:16:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2019 17:16:10 -0700 X-ExtLoop1: 1 Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by orsmga007.jf.intel.com with ESMTP; 21 May 2019 17:16:09 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX110.amr.corp.intel.com (10.22.240.8) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 21 May 2019 17:16:09 -0700 Received: from orsmsx104.amr.corp.intel.com ([169.254.4.200]) by ORSMSX158.amr.corp.intel.com ([169.254.10.135]) with mapi id 14.03.0415.000; Tue, 21 May 2019 17:16:09 -0700 From: "Wang, Yipeng1" To: David Marchand , "dev@dpdk.org" , Dharmik Thakkar CC: "thomas@monjalon.net" , "stephen@networkplumber.org" , "stable@dpdk.org" , "Gobriel, Sameh" , "Richardson, Bruce" , "De Lara Guarch, Pablo" Thread-Topic: [PATCH 1/2] test/hash: use existing lcore API Thread-Index: AQHVCvPQXEJ0tmATEUq2idBRiYlPzqZ2TzqQ Date: Wed, 22 May 2019 00:16:08 +0000 Message-ID: References: <1557907020-1548-1-git-send-email-david.marchand@redhat.com> In-Reply-To: <1557907020-1548-1-git-send-email-david.marchand@redhat.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.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDA5OGJjMzYtMmM2YS00NTlkLWI0YTUtODZhMmQ4ZWIxZTY0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRW4yUVVvMzhHc1Q0bGNGVjh3bzhYV2JROTFQRXNJVmY1ZEVqR1FlZUt4SVZLcXBieEU4SmpKOElMcFM3emQ2VyJ9 x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH 1/2] test/hash: use existing lcore API X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" >-----Original Message----- >From: David Marchand [mailto:david.marchand@redhat.com] >Sent: Wednesday, May 15, 2019 12:57 AM >To: dev@dpdk.org >Cc: thomas@monjalon.net; stephen@networkplumber.org; stable@dpdk.org; Wang= , Yipeng1 ; Gobriel, >Sameh ; Richardson, Bruce ; De Lara Guarch, Pablo > >Subject: [PATCH 1/2] test/hash: use existing lcore API > >Prefer the existing apis rather than direct access the configuration >structure. > >Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency") >Fixes: 3f9aab961ed3 ("test/hash: check lock-free extendable bucket") >Cc: stable@dpdk.org > >Signed-off-by: David Marchand >--- > app/test/test_hash_readwrite_lf.c | 29 ++++++++++++++--------------- > 1 file changed, 14 insertions(+), 15 deletions(-) > [Wang, Yipeng]=20 Hi, David, I tested the patch and the test case seems now frozen after runn= ing in the middle. Have you seen same thing? I include the original author Dharmik for the file for more reviews. Output: " .... Test: Hash add - key shift, Hash lookup - miss Number of readers: 1 Cycles per lookup: 112 Number of readers: 2 Cycles per lookup: 113 Number of readers: 4 Cycles per lookup: 116 ** With bulk-lookup ** Number of readers: 1 Cycles per lookup: 41 Number of readers: 2 Cycles per lookup: 40 Number of readers: 4 Cycles per lookup: 40 Test: Multi-add-lookup Number of writers: 2 Number of readers: 1 Cycles per lookup: 166 Number of writers: 2 Number of readers: 2 "