From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 43DC242FBD; Thu, 3 Aug 2023 04:56:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E14EA406BA; Thu, 3 Aug 2023 04:56:37 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2078.outbound.protection.outlook.com [40.107.7.78]) by mails.dpdk.org (Postfix) with ESMTP id 18D10406B8 for ; Thu, 3 Aug 2023 04:56:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DsxGcE+timpCofnaMWAIRyFKANUM6TmuiqRxcGOKlcVNJc3EshzerL65gBon34fSDjNmZvzDGV3gYEyR/Ru75XkfoUU+PTtKRqy2eLX15JN0/YjsgZ6GoFrYFcqWvM9CRvwv13HnNW0wXbyFrUlcMh/B9yP4DATok9dfyVdQ1tbwpj2wChj32kx2Wftl4ccX3u2U+C0vKPdXRtfUNxux7XAo5rJ72Tv4Q11MXfPCN/IrgfQsGB4IrXbrr+7pFLPGWr4zcSh52VxoJlGpUU5tVdJa/GlzqunL0PctY92pO7K9ZJcuC0kuJuh9FqsLo8CYaBR5afIWngPy2Cr85A6LLg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q58mleIhlBM12OnD8PCSUWMDNmzv3/hsgZRhPo+NZ3o=; b=nj5teEbRECqopbDfGWM7MF+tHip03Bfvh7gxtcxWrYEkBao3oSxE/4zfZsIKKcT52a/TwwJIXZbkkZUg4rpGEwCcdrvGeyxrobbyLiuTILSLomd1W3Q4eeZNoh01pv+FH+FD9tw9fVXUZMN2ZktqIbxyQsWcLuY5gHolWHIuRBnH/arftu8xvc2JfAqDojbEqrDGzkWrDoIoOVMVRgwtvCwsYE0fwaG+1YiHq1jIxYk8myKzHJ0pNxZbSk1zqJS8OefS2GHCbxSRuFZTUkeC9RjFdKjaDEcWMBgLCdfcOzOEtkiVvoW4ISwMOT0qVDy/8NKuWrmIjt+jnrx6M1oMeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q58mleIhlBM12OnD8PCSUWMDNmzv3/hsgZRhPo+NZ3o=; b=CHT9EA93+eDjyQwRCwWiPvYs0BSyu4+7LU0UMDc1DnUjiJJLp9E7w/3RzMBMziJDv3LQ1454ie2FYZ2yIiu/W58+8S5qJGiAt9vIwSDh4KdlpYIbbTt/S+OVPkFd2S873Pl6tPI/xQF5DWX0FwliJoZZzo/402gXLBpFfBDEhtY= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by PA4PR08MB6190.eurprd08.prod.outlook.com (2603:10a6:102:e6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 02:56:35 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::b3a3:eb56:481f:99c2]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::b3a3:eb56:481f:99c2%4]) with mapi id 15.20.6631.046; Thu, 3 Aug 2023 02:56:34 +0000 From: Honnappa Nagarahalli To: "thomas@monjalon.net" , Wathsala Wathawana Vithanage CC: "konstantin.v.ananyev@yandex.ru" , Ruifeng Wang , "dev@dpdk.org" , nd , "stephen@networkplumber.org" , "jerinj@marvell.com" , =?iso-8859-1?Q?Morten_Br=F8rup?= , Tyler Retzlaff , nd Subject: RE: [RFC] ring: further performance improvements with C11 Thread-Topic: [RFC] ring: further performance improvements with C11 Thread-Index: AQHZw6r2d69l1EzC8Uu7ypuMBfp9fK/X5K9g Date: Thu, 3 Aug 2023 02:56:34 +0000 Message-ID: References: <20230615201335.919563-1-wathsala.vithanage@arm.com> <20230615201335.919563-2-wathsala.vithanage@arm.com> <48310366.MN2xkq1pzW@thomas> In-Reply-To: <48310366.MN2xkq1pzW@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: E82090745FD6794DAA5F8C46F55FEBEB.0 x-checkrecipientchecked: true authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBAPR08MB5814:EE_|PA4PR08MB6190:EE_ x-ms-office365-filtering-correlation-id: e23e96ca-01d0-4dae-d53e-08db93cd3fa4 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: true x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 89guRnSMo8yVqr0fuOUo+rKq5uEyncSaFTsSfTlCCsx/6RQ9q7FkqPi/CKrYfRNbVmX/3aV9DeJ09jF6dnZJwRc4exIj18ad50vh4ePRxoxC76sUxciMmmynolhcoMdLulblCTSw1TYQMKnllERcdQZReRPNoW2sAHw5UDDTioFPGDnaZGnfzWJ4orRnDe63sHRBn9ZfLWARUylXCoISDnQ4XjBq5ZguG3Lb8vswmhBv/sGvYNL1HdCVtX+htppOa7+Sja+ZamwRYlgo9QmtUts57N9sbgz06Ara1LBtdgAiwh2o51akk9CG9+LTRBqEy+2NxDV4qNrNUD8cezFvHif3bzY/+RZjveA3jtmk8DuUw03fSqo5vIP0euzc+wicwa1Qs/wkkn3jRMbs2Kpt1OmJFFQm9kwd06Qo6wOK5PRbcdSgfrJ9lmQ3YyPMPimmHiawC1svPX1WDdElwdzlOycNe4m7gnmVjUK6kmq1/8G4Az16p66M0WoX0enoeatNHamVJaSJQMmkKZ3PbfsKNYp1dKa63QVd6Va5jI5e2uw5tgXoa+PAxKr/wxNkvWK3W9GwOnlMsntFHs5lYewvTei8W3Rw0wC4paDS2sguSpn+GaT5zt/1zHAmnVE8uS7jSJ/wlAVphG9t8Srn3ge2LQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199021)(66574015)(53546011)(6506007)(26005)(186003)(83380400001)(316002)(76116006)(2906002)(66946007)(4326008)(6636002)(64756008)(66446008)(66476007)(66556008)(5660300002)(52536014)(41300700001)(8676002)(8936002)(7696005)(71200400001)(9686003)(478600001)(110136005)(54906003)(55016003)(38100700002)(122000001)(33656002)(86362001)(38070700005)(23180200003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?GidUxhVgR4BXI7rR5XSXBQDGIP6hhGIHLY66l//nJoZoGcwNAkxIeG6Dpx?= =?iso-8859-1?Q?EEMGSqwxO0GLKfptjvFRE/FtdurBt2oLx7t6xJNd56QtaS7j5HDD/i9eKa?= =?iso-8859-1?Q?U+7OVFud6qb2NtRHNEMzV/cRGwV05KTE6kQ7x5uzf54STOsA/ZA/tLYTzK?= =?iso-8859-1?Q?9FdobMrj0mrapSpLYObJZRZeK/08UxMUY2ZGuS3DT79/rb8DBkzeQMkg5V?= =?iso-8859-1?Q?vGNB5GhjeJc0gZtBJaUP9634M6Niwu1RXUTgDNPKO0usj1iUO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?iso-8859-1?Q?VM5wIl9qlW+2Qoko1yXf0J7qVA5LA/Og+2g5Pu5ug89ycMcNkBeTuUAznE?= =?iso-8859-1?Q?rQU5WoOKGFt82t28pvsjIKdor2Uz1/n7sx7S0L1Ra0D9RkEGb16C1JTjz3?= =?iso-8859-1?Q?ySvGoTxh2fPvpUKWF9V42UgPl0AAciKSl6D7+NHAx6HPS8SnOvreqrMATD?= =?iso-8859-1?Q?SCgbgWSGpyMnZzUu4Xu2wHTQ1RLCR8oSrJ8OLwbCePO7iZbgPB1KndrfOs?= =?iso-8859-1?Q?Qlw5VP9lS/I0+zvPm/jUO4r/t04XbRqNVI1zjPmn/d2sTXFKwU6iJv8sF6?= =?iso-8859-1?Q?zd3dSNeWwWwYYkW8FFbKlXKkDT0Dw/zL8zU/LmDFrum7fyQogLTJ1yAK41?= =?iso-8859-1?Q?0/S0PKSTYUeQxJsoAnGjux52zxUBLIMOWKs79bF3d5F4K4Hn5wOeABRRjz?= =?iso-8859-1?Q?e7N2d/5AcCTMiEpw+G6+uxQYjNzllE1McgeZh1qapmoePYCNM6mP029l4T?= =?iso-8859-1?Q?c1bwGY3tX4xnEgWja20JguHavcjpEljHKm7YBJTrQYTk/ZgfM4GCpIaw?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBAPR08MB5814.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e23e96ca-01d0-4dae-d53e-08db93cd3fa4 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Aug 2023 02:56:34.8136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AehCtQgglmRnAMpF5aR0IL12OwgW2pvbI+TnDmfmYzRIe4dZhPEHBEmUQjrU6j8YM37z8wM5HHkM8o4PlmDzyj4xz85nbVerA0AIt7IF62w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6190 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Thomas Monjalon > Sent: Monday, July 31, 2023 7:31 AM > To: Wathsala Wathawana Vithanage > Cc: Honnappa Nagarahalli ; > konstantin.v.ananyev@yandex.ru; Ruifeng Wang ; > dev@dpdk.org; nd ; stephen@networkplumber.org; > jerinj@marvell.com; Morten Br=F8rup ; Tyler > Retzlaff > Subject: Re: [RFC] ring: further performance improvements with C11 >=20 > 15/06/2023 22:13, Wathsala Vithanage: > > For improved performance over the current C11 based ring > > implementation following changes were made. > > (1) Replace tail store with RELEASE semantics in > > __rte_ring_update_tail with a RELEASE fence. Replace load of the tail > > with ACQUIRE semantics in __rte_ring_move_prod_head and > > __rte_ring_move_cons_head with ACQUIRE fences. > > (2) Remove ACQUIRE fences between load of the old_head and load of the > > cons_tail in __rte_ring_move_prod_head and __rte_ring_move_cons_head. > > These two fences are not required for the safety of the ring library. > > > > Signed-off-by: Wathsala Vithanage > > Reviewed-by: Honnappa Nagarahalli > > Reviewed-by: Ruifeng Wang >=20 > Are we waiting for more reviews? We do not have a good solution. We should discuss this in the Techboard mee= ting. >=20