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 C6127A0548; Wed, 25 Aug 2021 03:26:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E81A40687; Wed, 25 Aug 2021 03:26:50 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2072.outbound.protection.outlook.com [40.107.22.72]) by mails.dpdk.org (Postfix) with ESMTP id B082140140 for ; Wed, 25 Aug 2021 03:26:49 +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=8zegEKTBrkc1Pa8drO07Go7YkiVRowSNhC4ZbL8Bd1Y=; b=DC4zfrWa1N7vXOYRJDhXiNGhTZ4ToGIH81BF12z6NJ9w6OuWdUsWwy4CLfH6V+bf+ZQhT2lT039jxeluLXJS+hEULRL21wynPm59X4r2YCfk+m7Oagj6plkXstJ+WECfTvvjGBbVukD1g7/gAiPWmEzCbq6VH8IcwEqjUEI02Bo= Received: from AM6P192CA0010.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::23) by DB6PR0802MB2247.eurprd08.prod.outlook.com (2603:10a6:4:83::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Wed, 25 Aug 2021 01:26:46 +0000 Received: from VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:83:cafe::df) by AM6P192CA0010.outlook.office365.com (2603:10a6:209:83::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Wed, 25 Aug 2021 01:26:46 +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 VE1EUR03FT059.mail.protection.outlook.com (10.152.19.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 01:26:46 +0000 Received: ("Tessian outbound 56612e04f172:v103"); Wed, 25 Aug 2021 01:26:46 +0000 X-CR-MTA-TID: 64aa7808 Received: from aa4aefd0b861.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BA69023C-0A56-4910-BBDF-33AB37BE5722.1; Wed, 25 Aug 2021 01:26:40 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id aa4aefd0b861.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 25 Aug 2021 01:26:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hp7imgQYVGdfsLq5Q9e9gaYAG2xoepjfYmTssnZbPqTvQTQtRkjVpTOHGdFs9QMqMF9C0TPnCpFi5Ze453BU/AoPjY0OoHtsAbFQK9P+ej+BbljbJW0/A9rHK4j11SzXIQdkZE+/+SrjaGB7R77l4Oep9Fv9pC7aD6DGQ15Ht+2ycuM/EpvFXGIesF6Nh7E3gtzDKMtokJQqb2eOdXdfwbb/H540wN7eVWJjzLBd54KOg3a7nA0IlbDsnnMdYllJcGSk5rT4Akt9tzxr5KVaVhArBy3mS9t0q0bpeGMHnXCb/+9LKUU+CqJR8Du6poxXhax79qSeG8T0OZSQR9Y7cw== 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=8zegEKTBrkc1Pa8drO07Go7YkiVRowSNhC4ZbL8Bd1Y=; b=UA9s4vR7O3yzDPuZvZ+VwKF1m7Ywh8cBBF6G8zGHvbO1UCYqcCM2brXSorcu+QFTLAF73mlljngoAGtPWTMnvMc5yy7HA7o97AcFl7HzZ+Sg3R5Pw1IT6k135YpYls/fvKiBONkFAjxL0Zz5srqAvjDAvLX1tyHtMGXrFWU5D1R8UT5clduZ1G0a6gwYGSl51aVjgKAd8ZhxAI2wJexFPpqFB//60awgRxg7c7+0hUT1p3DuFyDgln1acQ70iXp5NaHWB4S1pRUaZGz7mkA44Gi81yWYDb8PewvIzJUMRUHneiZXwh2kSYphYCYWix0CsvRZBbGyGbEaFUFxR/somQ== 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=8zegEKTBrkc1Pa8drO07Go7YkiVRowSNhC4ZbL8Bd1Y=; b=DC4zfrWa1N7vXOYRJDhXiNGhTZ4ToGIH81BF12z6NJ9w6OuWdUsWwy4CLfH6V+bf+ZQhT2lT039jxeluLXJS+hEULRL21wynPm59X4r2YCfk+m7Oagj6plkXstJ+WECfTvvjGBbVukD1g7/gAiPWmEzCbq6VH8IcwEqjUEI02Bo= Received: from AM8PR08MB5810.eurprd08.prod.outlook.com (2603:10a6:20b:1d2::20) by AM0PR08MB3905.eurprd08.prod.outlook.com (2603:10a6:208:10a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.24; Wed, 25 Aug 2021 01:26:38 +0000 Received: from AM8PR08MB5810.eurprd08.prod.outlook.com ([fe80::50dd:c2d8:dce:c11d]) by AM8PR08MB5810.eurprd08.prod.outlook.com ([fe80::50dd:c2d8:dce:c11d%2]) with mapi id 15.20.4436.025; Wed, 25 Aug 2021 01:26:38 +0000 From: Honnappa Nagarahalli To: Stephen Hemminger CC: Olivier Matz , "dev@dpdk.org" , "lucp.at.work@gmail.com" , "david.marchand@redhat.com" , "thomas@monjalon.net" , Ruifeng Wang , nd , nd Thread-Topic: [dpdk-dev] [RFC v2] eal: simplify the implementation of rte_ctrl_thread_create Thread-Index: AQHXmAf2H4CM5JFQ9Uaq02hO5DyJ6quDDf+wgAAgmACAAEGx8A== Date: Wed, 25 Aug 2021 01:26:37 +0000 Message-ID: References: <20210730213709.19400-1-honnappa.nagarahalli@arm.com> <20210802051652.3611-1-honnappa.nagarahalli@arm.com> <20210824143058.45b31118@hermes.local> In-Reply-To: <20210824143058.45b31118@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 38D625BE329B224BBAD7992F50D47EAE.0 x-checkrecipientchecked: true Authentication-Results-Original: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: b0d04246-779a-4290-87ad-08d967676784 x-ms-traffictypediagnostic: AM0PR08MB3905:|DB6PR0802MB2247: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: q+CUEEwg5/Ucolhg5hQUqiKeBa9PM4x1A33Uyh5JQmhoUrGmiLHCtu2Mkp3DUD1tq6XrurjvL5uoRD9pC1MwhK4bdQGRGlbWpGqHmvJCWNAfl77YFv/eNsijr3WgXziYsP7c6RuoswkGz7N+ifyMm0lE/Q4q4sibG1vvz9ZKH/Piy/8kHD4NJlzZcetnIi8CFhPLmDc7Fhl7kI8QN9mxMhwVhwEB9zExOK4GM4rCXJTFPOz2v49lEzGbWopAW7fS7xWqe93Ty/hWjo3GhYragraAe/B6irzlSxkdqlTEC3Iht+hdopxFuAbOUleMZCtgB4WJBVaw2zrv4S7HgYslQ7QWZ3dJjK70/+nQHT9k0XhpkWkUOooOMAght8lPf8E0fGI607s9U0B9VvwdrGAG50OWCe7rg34vOYCDh9+csdv0/iclhAl/FE40JCYA7R3/2nyy1n4AzHjKyf3wzhWwqUV+AF2GJ+8eOLsg5+UfgA5oC95m4miAwQEc6Oaql+xXo6WSjD8tTs470ixZjcGPrwICUVj2tyqxJIrN+yIpAWnaA6K+RNI23+1A78nEwf9ChQuyz88spWQVslQDprQFLVtuHfxxM7YKdmKZywIfcPvoRBj2FIxkxCVFz+ug4fzOVVESviBl2LHS8GhZaS3Vg5BXyI0wyoLx+6OCNAV8zk58MYedix736eZ7cZ1RtE6NVNg1U6MAKo/6f6BCR7C5Aw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR08MB5810.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(136003)(39850400004)(366004)(6916009)(4326008)(7696005)(4744005)(8676002)(66446008)(5660300002)(26005)(64756008)(186003)(8936002)(38100700002)(71200400001)(66556008)(55016002)(2906002)(66476007)(316002)(9686003)(6506007)(478600001)(52536014)(38070700005)(54906003)(122000001)(86362001)(33656002)(76116006)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FmUC7UcjsafIDsflQ1k4swUt2MhJU49LSNbNJjr03roy3T3sEa69CXCLp+tL?= =?us-ascii?Q?GuburMb32XiTyNYAU5rTLutxtcxQhx/oSYXoo+lS37uNbLVlbIMfkIx9yZLY?= =?us-ascii?Q?PrbRwa6rUIiiXjPed7xKh6DN65xMxRSMrXlnuBCqY+StW/Bxg7aX/CByAVzb?= =?us-ascii?Q?I5E1MPZqaZsok6R3NdjeaFAAdp6o2Q93+ZvLu8WIq9gyvTdL2p//0VjGQaMi?= =?us-ascii?Q?fAw9ca/L84LQQQ13kE7ExrkN2IlMOkWgjv58bPV97o0h/dmqhPnZJkv3lNAR?= =?us-ascii?Q?OG/OUCWvbJB/ND6KGeYezHXROSIpAWvuVX988cV4r+NbXW1Za4FrdFvfGqF4?= =?us-ascii?Q?xloyHXlHYza0AsjvYNgZxs301VSjo9Wa+giQsq1NA942ouMAi1V+WEo+n0kU?= =?us-ascii?Q?j78xBKA3oly6YQ35YJ38YTWCs4R2bX0RmnRo2DPqRPUSVgMnb5ZmbVig7MIC?= =?us-ascii?Q?eMMl/WREV5OGU5P/Yvc69vSu/k8I0T7dm9IrZtvyrMG1XQOHwz/FbU7SBu3v?= =?us-ascii?Q?NIH1LHTNSbhnOnw4LF6kdlBfYAw0CC75LJbilQGk7djbNlSYRTs7+q/7LKOc?= =?us-ascii?Q?Zi99V4EL9/lOGGIF9FAW3Pz/gkpz1lvwkY3aIP1oFa0214N1DhEj3nRpvpF1?= =?us-ascii?Q?X09DarHgt+7Xu9GV8FohOJ3UlpfsaVRgkQUImsER+HzgHAG0KJAE8kOMNeFh?= =?us-ascii?Q?HalFVV5FY0G0Zfic9nnz6VMqAm/91bxR7UQbnC9KHaK+psD1sfsCZK1MnX0C?= =?us-ascii?Q?n2A7F9Z6OADiDlKgXUsdgxdpOjNN2wLkyy5OVDEw5045F7sxB2L4I7evg55R?= =?us-ascii?Q?nKqhkwNVFVQlqSFcYaafQS5br2yfP/ZLDZGX0+PiSBAn51HwM99dvA7MD2hM?= =?us-ascii?Q?ZYnavhrXAPkpnO1eoLC8z8yDPmSEUNypbpd1/FeTfjZczvF+skBintUbePWT?= =?us-ascii?Q?xpCs3oCWg3Avy1kvBJspdTSNUmDT0qb8P1EapH+bDKUfImQ5nwQlJv7dhoga?= =?us-ascii?Q?1ZuRwHoG+mBlupcNrXXfdc3/MEzB+zFgianxhIp2FCxPy+CFceTvAHdQEYf0?= =?us-ascii?Q?6rIFJ990kYxg5/lvr5uW+oRTEiH7sNe3UlWFGv/tseoZzyDYMB4JzPmlHiez?= =?us-ascii?Q?FF7AV0LVnktyerTn0zliv61FpN+pyEskfL+k8ymrMxHzCACrjBRfbKf1SAMT?= =?us-ascii?Q?AhLsGHQFtDe/rsL46hDsCyO5PgemvrYdVR3fjk9bV915/3peA0zfWO+udfu2?= =?us-ascii?Q?PevDZeJF2TU4ZCeWSCYPHvolIaJf6Tle5Wxso3CWC//Iv5Y7Whr6c2KWdH06?= =?us-ascii?Q?uiyBw1Ayrg/vi8jeVzpAINU1?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3905 Original-Authentication-Results: networkplumber.org; dkim=none (message not signed) header.d=none; networkplumber.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 009158d9-448b-4e2e-8910-08d96767627d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JSF3J0RQdxW7ZOTq+VGrOOE/RU/qha9LlgiN5H2wCZ7j2RPMMbVjL61sgUIR8/VzIOZldlgOXDdgooOca4Gn81w8yilsna4IblppA+MvI43W7x4xAnU7cR4GnOJAGIA1jtI6QkWf6hSWVP4fiCQDnmA3un/sZSFXTwIc17lXuIJo9+WuW9nVZ5LCQeZQ5vPwGUj1dhNrqrlZUklIrhfpfKB/FWbm/q3P0KPchwpr+r0ozs6ulQ5NUpRZgPvQN1jQTnzprA3IfAuRqubF207gr+IDfhTG5VFgTngkDMCMQFUnAoG0a5BUoZa003W7JCQ46GFaiQuEfWwrKWLUb+hLY8jAiU3OHbNHIrjPKlfZRkutI7s2BK9C7lXqHcDFXXaRb6LzhUpHSCTgU4xn8NscdytXFn8UQAjoxaGlAmtW5ZlsWBor70U1LsI+wJw1fwrds8UCxgmyXaLYMXvVyqUQgNxtYQ3CWzpfEQOO6bfkYbV9PIPvAb9PHfvGeAO/esYEDzjbaa0cJ9e5b3zDH7pNDyr4qgjVaY4jaGYwdEULlze7EydzmnaMydFcj1Bc07t1xLNAfQRHnKsKZLkMO9hIX+6r5E+q7ec57x2TD/E/vQrBBCmm7bikYjZqRx8ghyYGI++d7U/pflGKqwkv1awIvqvPDtiZ0rkCoO8a5yTrAFRnMduyYoMVukZM45ojzer3+2U6USemWONOghqH/mkWSg== 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)(396003)(376002)(346002)(39850400004)(136003)(46966006)(36840700001)(316002)(86362001)(82310400003)(4326008)(81166007)(356005)(47076005)(54906003)(186003)(5660300002)(70586007)(52536014)(70206006)(7696005)(478600001)(6506007)(55016002)(9686003)(26005)(2906002)(4744005)(8936002)(336012)(82740400003)(6862004)(33656002)(36860700001)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 01:26:46.4587 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b0d04246-779a-4290-87ad-08d967676784 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: VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2247 Subject: Re: [dpdk-dev] [RFC v2] eal: simplify the implementation of rte_ctrl_thread_create 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 > On Tue, 24 Aug 2021 20:03:03 +0000 > Honnappa Nagarahalli wrote: >=20 > > > One difference between this implementation and the previous one is > > > this busy loop. rte_pause() relaxes the cpu, but will not make the > > > calling thread to sleep and wait for the sync event. So here we can > > > spin a quite long time until the other thread is scheduled by the OS. > > Yes, this is a difference. We could add a microsleep to allow for the O= S to un- > schedule the current thread. >=20 > Why not use sched_yield() here? Makes sense