From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6C4E4A3160 for ; Wed, 9 Oct 2019 13:14:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84BA91D421; Wed, 9 Oct 2019 13:14:38 +0200 (CEST) Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) by dpdk.org (Postfix) with ESMTP id 9F8421BFF5 for ; Wed, 9 Oct 2019 13:14:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1335; q=dns/txt; s=iport; t=1570619676; x=1571829276; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=6+52ni/ArY4FtKaReZmWdfmzhrUi351aMz599ufs79k=; b=Kwpsnr0qq60ZKGYiDeuzmZQlAcGmcZ/ioLOimX6P9bJKjzLGn54ZQE3l UyK9nYOCpOuEAc/yVM+4g94G49oY2mFrMJZqgkNXMdW7Mi7VQwoBqq2t/ Y3NN0fOY2oftOKVi/glI5W3PrF/pqWxyjsccy/gT6m55rAI2N9sPRSPav c=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BfAABIwJ1d/4ENJK1lGgEBAQEBAQE?= =?us-ascii?q?BAQMBAQEBEQEBAQICAQEBAYF7gh6BcioKlQKbJgkBAQEMAQEvAQGEQAKCTiM?= =?us-ascii?q?4EwIDCQEBBAEBAQIBBQRthS0MhUsBAQEBAzoyCgMMBAIBCBEEAQEfEDIdCAI?= =?us-ascii?q?EAQ0FCIUlr0+CJ4pGgTSMDhiBf4QjPoQuhXwEjTWBf54PCh2CBZURI4I6lwa?= =?us-ascii?q?OLYE/l3cCERWBMjcigVhwFYMnUBAUiASIEUMxj3GBIwEB?= X-IronPort-AV: E=Sophos;i="5.67,273,1566864000"; d="scan'208";a="347288886" Received: from alln-core-9.cisco.com ([173.36.13.129]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 09 Oct 2019 11:14:35 +0000 Received: from XCH-RCD-005.cisco.com (xch-rcd-005.cisco.com [173.37.102.15]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id x99BEZ5E020938 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 9 Oct 2019 11:14:35 GMT Received: from xch-aln-004.cisco.com (173.36.7.14) by XCH-RCD-005.cisco.com (173.37.102.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 9 Oct 2019 06:14:34 -0500 Received: from xch-aln-004.cisco.com ([173.36.7.14]) by XCH-ALN-004.cisco.com ([173.36.7.14]) with mapi id 15.00.1473.003; Wed, 9 Oct 2019 06:14:34 -0500 From: "Jakub Grajciar -X (jgrajcia - PANTHEON TECHNOLOGIES at Cisco)" To: Phil Yang , "ferruh.yigit@intel.com" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "Damjan Marion (damarion)" , "Honnappa.Nagarahalli@arm.com" , "gavin.hu@arm.com" , "nd@arm.com" Thread-Topic: [PATCH v2] net/memif: optimized with one-way barrier Thread-Index: AQHVfkY2idhy15Hdl0OE7PGLGOhokadR91FA Date: Wed, 9 Oct 2019 11:14:34 +0000 Message-ID: References: <1566817214-26599-1-git-send-email-phil.yang@arm.com> <1570586694-18180-1-git-send-email-phil.yang@arm.com> In-Reply-To: <1570586694-18180-1-git-send-email-phil.yang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.61.230.61] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Outbound-SMTP-Client: 173.37.102.15, xch-rcd-005.cisco.com X-Outbound-Node: alln-core-9.cisco.com Subject: Re: [dpdk-dev] [PATCH v2] net/memif: optimized with one-way barrier 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Phil Yang > Sent: Wednesday, October 9, 2019 4:05 AM > To: Jakub Grajciar -X (jgrajcia - PANTHEON TECHNOLOGIES at Cisco) > ; ferruh.yigit@intel.com; dev@dpdk.org > Cc: thomas@monjalon.net; Damjan Marion (damarion) > ; Honnappa.Nagarahalli@arm.com; > gavin.hu@arm.com; nd@arm.com > Subject: [PATCH v2] net/memif: optimized with one-way barrier >=20 > Using 'rte_mb' to synchronize the shared ring head/tail between producer = and > consumer will stall the pipeline and damage performance on the weak > memory model platform such like AArch64. Meanwhile update the shared > ring head and tail are observable and ordered between CPUs on IA. >=20 > Optimized this full barrier with the one-way barrier can improve the > throughput. On AArch64 n1sdp server this patch make testpmd throughput > boost 2.1%. On Intel E5-2640, testpmd got 3.98% performance gain. >=20 > Signed-off-by: Phil Yang > Reviewed-by: Gavin Hu > --- > v2: > Upgrade 'MEMIF_VERSION_MAJOR' number to 3. (Jakub Grajciar) >=20 > v1: > Initial version. I jumped the gun with the version bump. The change doesn't break compatibil= ity. I'm putting reviewed label on v1. Sorry for the inconvenience.