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 A355FA0C43; Fri, 8 Oct 2021 01:40:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 31823411CD; Fri, 8 Oct 2021 01:40:16 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50049.outbound.protection.outlook.com [40.107.5.49]) by mails.dpdk.org (Postfix) with ESMTP id 5B4D540042 for ; Fri, 8 Oct 2021 01:40:14 +0200 (CEST) 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=m+unBKCYu0teiIk92r86mlH1msEfSzXYsqDCxT7hT7o=; b=MePjPv7Mc4IAq2tMN0kGJotBv9yTncDJ5kJKjQWB1x+/Q7uP7vrNwb/YQy5KKGObdYS1Fez964+EyMI34PJTcCiqnCDFAr5i2Tb+m9FX+AgGpdRVhLPrjUl9ab6y/TNNuD0w2y5E/SKmNbcwdkGKJOyGYJsPnrFEsZW4iWgHxTw= Received: from DB9PR05CA0007.eurprd05.prod.outlook.com (2603:10a6:10:1da::12) by AM6PR08MB4706.eurprd08.prod.outlook.com (2603:10a6:20b:c4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22; Thu, 7 Oct 2021 23:40:11 +0000 Received: from DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1da:cafe::8b) by DB9PR05CA0007.outlook.office365.com (2603:10a6:10:1da::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Thu, 7 Oct 2021 23:40:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT041.mail.protection.outlook.com (10.152.21.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Thu, 7 Oct 2021 23:40:11 +0000 Received: ("Tessian outbound 16951d3c485e:v103"); Thu, 07 Oct 2021 23:40:11 +0000 X-CR-MTA-TID: 64aa7808 Received: from 2d20026fbbfb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E452724C-23FA-4A80-8979-F5AD39234CCD.1; Thu, 07 Oct 2021 23:40:05 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2d20026fbbfb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 07 Oct 2021 23:40:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TXVgOPtna6wqWkNZCNGUXWgPn9u5VN+EoOpynS1ak82qYA32dtbi5gapu8Ap5LriVaRPYJjGKItLPkoNt9/w9k/4D51TBU08Yndv93AxEO+56J2c93vozSrOzWrXa/RmRvSBD+foS+9wVSDVGLupe7ugbG/CCDL+G5bKpQ4a9pNTDC+mIt3bo1AD4zU9PO9Lg6lT5HIOp2jl0F2V2XDXxsXRgEODttIhwBsBOIRMAZaqOjZ7rjM6mwzxI3l5+vLe2KRaBhJRiTCAnLyCYVqwt87I9Xo3tNAkl9GazXh+kZGyCWr7NII33hFKrvBNYYRjzGlwKohViH1jhFUhDlK4NQ== 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=m+unBKCYu0teiIk92r86mlH1msEfSzXYsqDCxT7hT7o=; b=BK2kZ8ZK1DeVhS3qqURmjP5pF8Vt2RftM1JOdw/2SDUO/0gK0C46cSxaOTKPK5VG3/IX23NZNN9nUvhJoJDyshLeFw42CQ4I/NZqxj5BHaotA5DvrePLh32TgNoPeEqOe0yeBNCHtoMK8lpAU9Ov8wdvD9etQonLLJeMkiZjbdgrpKuxvLLjFhUnSgThpasgn53QKOiLx3TjUjGaCJCJg7ajEFK/xajKoFwgpiLEM/gS01vj03VkBoLVX7BMRvQn/wVYu3a4yvh1HEYSGrHJUvaUZ6jL9vh63mWDlzGW4y9dVWDPVV7lc5ltUpqG6UhuK7OAdvnocvYxO6dONhdwDA== 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=m+unBKCYu0teiIk92r86mlH1msEfSzXYsqDCxT7hT7o=; b=MePjPv7Mc4IAq2tMN0kGJotBv9yTncDJ5kJKjQWB1x+/Q7uP7vrNwb/YQy5KKGObdYS1Fez964+EyMI34PJTcCiqnCDFAr5i2Tb+m9FX+AgGpdRVhLPrjUl9ab6y/TNNuD0w2y5E/SKmNbcwdkGKJOyGYJsPnrFEsZW4iWgHxTw= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DB9PR08MB6442.eurprd08.prod.outlook.com (2603:10a6:10:259::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.21; Thu, 7 Oct 2021 23:40:04 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::8501:86ca:a393:17b7]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::8501:86ca:a393:17b7%7]) with mapi id 15.20.4566.022; Thu, 7 Oct 2021 23:40:04 +0000 From: Honnappa Nagarahalli To: "Ananyev, Konstantin" , "dev@dpdk.org" , "david.marchand@redhat.com" , Feifei Wang CC: Ruifeng Wang , nd , Ola Liljedahl , "Feifei Wang (Arm Technology China)" , nd Thread-Topic: [PATCH v2 6/6] test/ring: use relaxed barriers for ring stress test Thread-Index: AQHXpdBaZmLu04FmxUCUzlRrFr7MTavHmBqAgADFXrA= Date: Thu, 7 Oct 2021 23:40:03 +0000 Message-ID: References: <20210224212018.17576-1-honnappa.nagarahalli@arm.com> <20210909231312.2572006-1-honnappa.nagarahalli@arm.com> <20210909231312.2572006-7-honnappa.nagarahalli@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: A8D51897AB47A347948A25A12E5C76E2.0 x-checkrecipientchecked: true Authentication-Results-Original: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 8f3600b8-40aa-4d50-1892-08d989ebcdf1 x-ms-traffictypediagnostic: DB9PR08MB6442:|AM6PR08MB4706: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2958;OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: mlmrMoTDpVZfBMA/DBGYHcCU8Py6zkaiI6oGLXnxUODsECywtjc8pJsramXoU6r8HsKoFw48sMu5fPU+x8Ei+k/XgjvhHBACcyVw8vp0SCHZFL/llfY9Kl3ELz5SlekwzbuAZiX7L3WjzpQrSnZWsVxbos38KhZ4Iytm2j31uk8h7I2iQPDDVv8nWsHN4qt+1ZwZKFagpq5dMJI/6ZusbPaTNK0quie+WFfFXGmnDbj51ONOR+gfsxrMH/IqJ/RE7nl1hYhf83pcNFx0uvGGJmkhWN9KiPe+R7/hSmnDclQrXlXx07IL10bsoRM13QY8VUGxqtphd2pgbC/g94DNK22rEVHzfH68uxt8vDcy8qi2/BA0PLAeN2HD6rYzSakGThpBzhuseRRPIUD7TAOmecpfKZQFbKR+vwdfEWoZcOu0BEwDCNJtHAPVVjlDR69FU8Iz0/a+3ou7U1++vM1++VDWQvY0LLFs72oRqJEaMKz35JpURgZWqhbr3EXDCSQ9dFjDCrhybckHW1dRGGBHww8feAeZwUIvffgTGNva0Lk4o4oTp2Kt/T/Us2TETVnNnEF+M/FshLS/Cq8nDSB/+8azjTHJcXDNzYXJ2aK6LTjrFJWoNtGjab2iAxUlBXvWpzwRwKH8UaIoOuPR7nr//xRuLFzEfF0JihDe427yRqc9q1A18gMfb3smFjFepGLMrInu3uVkWZVR+pWKKHWwbg== X-Forefront-Antispam-Report-Untrusted: 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:(4636009)(366004)(110136005)(54906003)(9686003)(33656002)(6636002)(8676002)(64756008)(2906002)(66556008)(66446008)(66946007)(316002)(76116006)(66476007)(83380400001)(8936002)(186003)(508600001)(71200400001)(38070700005)(26005)(52536014)(6506007)(122000001)(86362001)(55016002)(4326008)(38100700002)(5660300002)(7696005); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6442 Original-Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 08a64c67-4c16-4ea7-ecbf-08d989ebc9a0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qQ7d2CzrMX8OUbDtk8G/Ix98/8CC4LWBxy7lF+K6OXedM61sr9f+7RVKa3UovW+r9L5ZXinLdABUCWjVUsGWCgtBdHX8N8O31FdBGRcmChcxZNMfL1A9jMRwGxSPuLzD3S3L4NZdFnq3Q5luPzItk2QZShkCpCHuWaWBMcEquJa5TcoCi2mnT+3oTP7v2V5tCUDmAyhne7AJV8Hu9v47puC6HXxGq6B1tPqlHvKYsc7+eoDkyJIwuy8103oHvKXoPZ5m4C/d455rxgEybT3PMBcoa1jWNBDusfpJ/HxgDZHXNAM5jZzdV9A+b5mZMvnUp76K7GRc0Kewy+q9T9ibA/woFCHF2iXrRv76VXObQFLm/iXLyNp5hCVh85coBnvnZ/f+xrAtZO6CsbA+K5LZjf3hmzdoMFRu4tTT43UWBZVr2aHBIPCUewKJT6JfED3lNFikJUMxMMewvapDSyA2edtGqeeCPYkS1Si6rafhdIz70gOdSM3/51Tb7kuPZQ6goYfH+0jKhgvfiAQxqnHLgknED1NVU6XVf1m1PZajjFxz+nCAOlblkPcY35p+ZTyHG47pXJMUw3mWaS9x8Y5X1O9ug+BJ+YDDloWH86cvzHmxWniXTcS/1msUUfh6HqJOIWYwRdDcGDoboepSd/SBIAfr0sYvAstTNA0Vy7VAho9wfNNTlOLCLukZWg6DTB9sC04jAJHwCxfvIWkcMbYruA== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(70586007)(316002)(7696005)(110136005)(47076005)(55016002)(70206006)(8936002)(508600001)(9686003)(2906002)(36860700001)(82310400003)(6636002)(4326008)(8676002)(26005)(33656002)(86362001)(5660300002)(186003)(6506007)(83380400001)(52536014)(336012)(54906003)(81166007)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2021 23:40:11.5005 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f3600b8-40aa-4d50-1892-08d989ebcdf1 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4706 Subject: Re: [dpdk-dev] [PATCH v2 6/6] test/ring: use relaxed barriers for ring stress test 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 Sender: "dev" >=20 >=20 > > wrk_cmd variable is used to signal the worker thread to start or stop > > the stress test loop. Relaxed barriers are used to achieve the same. > > > > Signed-off-by: Honnappa Nagarahalli > > Reviewed-by: Ola Liljedahl > > Reviewed-by: Feifei Wang > > --- > > app/test/test_ring_stress_impl.h | 18 +++++++++--------- > > 1 file changed, 9 insertions(+), 9 deletions(-) > > > > diff --git a/app/test/test_ring_stress_impl.h > > b/app/test/test_ring_stress_impl.h > > index f9ca63b908..ee8293bb04 100644 > > --- a/app/test/test_ring_stress_impl.h > > +++ b/app/test/test_ring_stress_impl.h > > @@ -22,7 +22,7 @@ enum { > > WRK_CMD_RUN, > > }; > > > > -static volatile uint32_t wrk_cmd __rte_cache_aligned; > > +static volatile uint32_t wrk_cmd __rte_cache_aligned =3D WRK_CMD_STOP; >=20 > If we switch to using atomic load/store for 'wrk_cmd', then we can get re= move > 'volatile' classifier in the 'wrk_cmd' definition above? Agree, will remove >=20 > > > > /* test run-time in seconds */ > > static const uint32_t run_time =3D 60;