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 055AAA04B8; Tue, 5 May 2020 16:49:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D9E31D618; Tue, 5 May 2020 16:48:53 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C86131D613 for ; Tue, 5 May 2020 16:48:50 +0200 (CEST) IronPort-SDR: 7ooB1y7jpymV2Msv9x7Vy50HBmVvYp4uc4YzIb32wBK68URFLxlz/cm6YiXQAMmL1bbBXN4G3G AiGSjFIBiAKg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 07:48:49 -0700 IronPort-SDR: 4N3eIO8owOtr1+TqP+yW0nRtB0EUE4EVqwOGxmKj3Sg0n9O+yMvdxsYp73+i7ARhmyPbfRds4J q3cB65NwOkNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,355,1583222400"; d="scan'208";a="294993077" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 05 May 2020 07:48:49 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 07:48:49 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 07:48:48 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.175) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 07:48:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gv8MFevxlVMNbzwmkEoIs4Tq5vVOQLixhK98gg9eOJ5e/boMpEMQMIaSDUbzPyWyaN240jSsYEzHX0XmxsaKj/Q16azIzjH9B3DH8qI0o9QIzvv9fVtGpEUgdG/MoRCGd+MErHaAqlPAAdxZA30Eik5F1qVpM2RnjM1RpKuRhA574FiDxItGLVOsMNHkdeb1K9Dn8SfP5cSoFD5M3pfFlJ4md2EB0xAPRvsdp9AIgza+AlYPI5JEu4x8CodbhyWAvxrj4LUpGXlV4dsM97w1pNycT6mXySC2QjSyVNUK2bcxO3PgrV8v8hhsqWh0MhjY5+Ost0ap48kzNQGRCq5NOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NeGkCRK5zhX2oplpsCH9qB0kP/M8Fd+tHj5V4vOI4wY=; b=FhG8wMJmeV7LdeBrw4R1R/cx0r+7MmnhSH5+WPYRWw3YdmTegjyyyo0ABsrPxKiEJzDMcm0fItnoQtbZYrKJAOhyMKBvaS+FWAik/QJk9vIXlDCQQiwqMhdKcE6g5lRH7hdpFJ4+GpKE4T2enSAZudov1FPhObm09Gm+Bp+JBW+VBqW2YYXoNYptf09kszu0wZSbCwU4RZs3Zuuy3YSKuD2+cDfhY34aslZRj1fdb92D3a8ZybU9LpqN4FxXFP4yCuZH4hn47+c2gd9CgQ/tFU9jOYtHMsht4ifpC9lUBQvxvhqcMbEVHECvCMgx3KzZeDmFaRwq23E0wKyXc28TfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NeGkCRK5zhX2oplpsCH9qB0kP/M8Fd+tHj5V4vOI4wY=; b=gC/pBoya/fXL8nM+6QavZiIDjipWXfgFSVE+sLqh7qo6/GIaDZ2VPTD3vunY52yE+lyxp8Cbmc8ubna25/8jbF8iIKzdhLkpNJqW2BfMF2nl8Q/Zl4X1BGGdCb7uLOGeoeGve8KBrwbZ63oOv8Z5XZURwDggUmyNLM6k9+gtofY= Received: from BYAPR11MB3143.namprd11.prod.outlook.com (2603:10b6:a03:92::32) by BYAPR11MB2726.namprd11.prod.outlook.com (2603:10b6:a02:be::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.19; Tue, 5 May 2020 14:48:41 +0000 Received: from BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::5917:9757:49b0:3c49]) by BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::5917:9757:49b0:3c49%5]) with mapi id 15.20.2979.025; Tue, 5 May 2020 14:48:41 +0000 From: "Van Haaren, Harry" To: Honnappa Nagarahalli , "dev@dpdk.org" , "phil.yang@arm.com" CC: "thomas@monjalon.net" , "david.marchand@redhat.com" , "Ananyev, Konstantin" , "jerinj@marvell.com" , "hemant.agrawal@nxp.com" , "Eads, Gage" , "Richardson, Bruce" , "nd@arm.com" Thread-Topic: [PATCH v3 5/6] service: optimize with c11 atomics Thread-Index: AQHWIBUgL7Lc81GcdU6CDZ0cXelp3aiZlGkg Date: Tue, 5 May 2020 14:48:41 +0000 Message-ID: References: <1587659482-27133-1-git-send-email-phil.yang@arm.com> <20200502000245.11071-1-honnappa.nagarahalli@arm.com> <20200502000245.11071-6-honnappa.nagarahalli@arm.com> In-Reply-To: <20200502000245.11071-6-honnappa.nagarahalli@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.162] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 85f7ee6e-e975-4d40-ad4f-08d7f103670c x-ms-traffictypediagnostic: BYAPR11MB2726: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1148; x-forefront-prvs: 0394259C80 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RXHCmD3tZCbUCck90oSnbAiZ076a5S0DLJiGKQ8KfCVUxvB3rTA/XKCWL37kXem+ZigpjXj6rCrn7JhLbdIf75Q6g6NWZGIdHAKWx/LH6cMCKGc64nuldbb7PxjURvkY6wTO4J1pnQIqB2vO7uw3sZY69+rA5isEvQ9hE4VwiapXlwZonD2Dyb8Gp8BvByGE/HIaTEcvgMy42gj3G1E8OG5g8DAL05vIbjGerWmQT8LEuARy6ALHdMZM05RboEIqg37mdM54n7Poh2ltNiRNocfTtweaxWBN428d5cydN3YUeB8k2eSnQt9lIIaUvqZtQ0QRuB+5TF96Z8tfiVghiG8mtpNv/C7vs1txERRQ7gf174giFLWjF9DL9XxulagfXr4/ocR4c24WTlseBd2h0FX4kfKOmU5hHQLdl7oCsUeD0NgaR5OIzjn3vXmijfwGRjTHxafSoDeYQOSFTItFShVINU2ea6xJ3PKIR728nOiKenDC3IsiUOgmJ2yFq6Opy1mSSCC+IuNn/Vomvqsd8w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3143.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(39860400002)(366004)(346002)(136003)(376002)(33430700001)(4326008)(86362001)(9686003)(8936002)(52536014)(71200400001)(33656002)(2906002)(8676002)(316002)(76116006)(5660300002)(66946007)(66556008)(66476007)(54906003)(110136005)(4744005)(53546011)(6506007)(33440700001)(186003)(55016002)(478600001)(26005)(7696005)(64756008)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: f3U7eAOjYmOoBTCh9yBgLr6jUCEg93q9wcpBE7MHxD7g/S/MvWD93dFSMVhzKrB/1qDlFouxXSh6ZRQdeBiXI/zNSwykM/D+caMw0Ips9R+n7HpANm51FCs+rtu2lKJteP2hKCeacx/ry2QLg2ZVxLEd5ccjDnQ8p3pIYsLbUxkBNrss0QrkZ4/+If1V+D9nAfBhK31nYPaF/R16YTZGZklnGbZEaO4uSITrqU/2sYQbx2ksi1YiMcHvrwu+xhyAarSwhuk/hSzNLgC7ghnNJ+YiT3GCJHiua/pMyaYr7wQYD1fUXpQ5COmSGs/b0fFyUWFDYrGTt8Dh0WPnT03Zn57j9USEIZTIkyGxTPi92dnXEqvR2V++gkyD/pYsRXDOYulXFAsKuEilfXDymZgVJqhac4/MnjMwuq7//kF8yPo59Bi3FnRVD7ooMYZgDvQ+JQC5rt8lbxXovz23OJ6dzsWjnHNwZP8gVGe7IkW6bZT8wlXlrd1TR+AS0sOhEaGh7wA3/cCkRFQ6sRN7nwh0flLglT6ODwkx7TWWgbl5MMxBqKgxFtXYj6VTaiu41QyvU1ysmpmjH6xLEpfprBvmJCTNMny2iysoU/DyvNMqBtp1qUqQbZ1dL5y5kdtMibaLvveCDyJjJ0I2VtRoNpq6a9ng2IoG+Ac2nf1Lay4dc0yHaccpDEyfISWBUulRChlsY2CNM2qk6NYQaP6K7KhBuaTzDbBO0ADJm2/AVR6fb5llTqbJHC1XvS7ImWolDkVOIs3YtNyEECZ/BTadfYeUxlre1S/agnjb+JxHSUax22eDYupyJLfUze8OWJa9GJ7a Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 85f7ee6e-e975-4d40-ad4f-08d7f103670c X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2020 14:48:41.0855 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pE9qZuXgEBCHrzTTUNKIgHbJNdwLsc8bGm+yIryWgMK3uqOc4fhTuWh4ZaU+17dVtVnwq1fsXBCbPjwWyCdHbU680fOl9rRfavPyoAoGJow= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2726 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 5/6] service: optimize with c11 atomics 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: Honnappa Nagarahalli > Sent: Saturday, May 2, 2020 1:03 AM > To: dev@dpdk.org; phil.yang@arm.com; Van Haaren, Harry > > Cc: thomas@monjalon.net; david.marchand@redhat.com; Ananyev, Konstantin > ; jerinj@marvell.com; > hemant.agrawal@nxp.com; Eads, Gage ; Richardson, > Bruce ; honnappa.nagarahalli@arm.com; > nd@arm.com > Subject: [PATCH v3 5/6] service: optimize with c11 atomics >=20 > From: Phil Yang >=20 > The num_mapped_cores is used as a statistics. Use c11 atomics with > RELAXED ordering for num_mapped_cores instead of rte_atomic ops which > enforce unnessary barriers on aarch64. >=20 > Replace execute_lock operations to spinlock_try_lock to avoid duplicate > code. >=20 > Signed-off-by: Phil Yang > Reviewed-by: Honnappa Nagarahalli Acked-by: Harry van Haaren