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 64050431A1 for ; Wed, 25 Oct 2023 17:16:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5CFB54113C; Wed, 25 Oct 2023 17:16:09 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 53BA640273; Wed, 25 Oct 2023 17:16:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698246967; x=1729782967; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=lv+QC5sZ8lhmW4BYRU894Y+PfKloAZBqfcAnVwLExfA=; b=RhgNUJ9h2+WaDf9Jnm866BgK1PAJLNSpstj5tHrSDYl6xGa4QuqFKeO0 v1sJUossaxs19cIt7DW38RvCKbsoMB4AnI0ZBmA0/J2SCWfHurFV2fGCF 89TnRM5ZoZYwjYuxt10TWo1XsAJyVd8Y1fnb4v/d5m7XYfTlD6mjiODDp HO9lrbQmJDe36e5ZlOXNqjj1OGAnl3KYpdhogxeTZ3dkL5DR27DPU76sq p4t+sHKa3KxGPAien8KHLQt7rwA2VkKUvZ7jDEPabs3UuqqbXDYB4+xSX k6wx2+ZWS+tvmGMQyENybefm6yBa3JpNkJK8VUEZlWqyhqcW+CWK4PBe0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="453798188" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="453798188" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 08:14:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="932379768" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="932379768" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 25 Oct 2023 08:14:36 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 25 Oct 2023 08:14:36 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 25 Oct 2023 08:14:35 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Wed, 25 Oct 2023 08:14:35 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Wed, 25 Oct 2023 08:14:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KLp8Ew8DNa53EWJFTVpf/PFo0vvbSwzfybgFwNn2w1BR1OVaFnvqb1CP/MLUmdZvx9folmH2PnNUnkZPqk0+nYNQAlqjpi/0x+tA7QvB9vSYt/1NZD2Jikzc+054gCb9KjRMVpNMAMvvoI3EvvPG93BsnmoMFU6mN4vlNdwCWeEfU7J1AftvctDwGbFKDpXeEsjKqfkBFNOyHG78Gqu/MQwySqfsQ34Bm77YU2DLw9bZduEo6TuXh61Idt3FPeC5467ObNEjeF96wyQYwnlKwpzs5YeTwX2l5f2bxJ2+raWa/Vmh/PmvF6klDeBN2Z7DZz8SkuJIRomjGAfdB0FH9g== 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=4hNz8vjQLkUGXbTkNfG7ertUsk8T9b1l0ll7gx7fQFg=; b=WtXxVwd0QlxV8A6sQHdg+trL/sWWeYvg8vIosRKDZEJLfDUL7G061Et50xLxVKelPNt+XFxnZcBOovZrJWBHuo7qipSTDnGOcrloF6G82kwJbJXTKTBt9OOwi9yUn3o5PfsZRfNXJYaqi41+eLYKfNaKxD1cjey+gv26X9FTVmYMy5dRH80qRy/CKu3GG32fzLVXj3QvxB8CHRNwELPSyJjVsSJY2Pcpn0GucWVisi/dR0rcy1cbC7qsJMW4Gvu3GjkP3ASWlV38aEJ9gAk11ldUjq10ls/gB1cu07KZYFo3MKK9UnK254mBFANr/WeggvH+wRDEc43BTROuIyCkGQ== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by LV2PR11MB6023.namprd11.prod.outlook.com (2603:10b6:408:17b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Wed, 25 Oct 2023 15:14:33 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::d70b:11a0:d28f:ec44]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::d70b:11a0:d28f:ec44%6]) with mapi id 15.20.6907.032; Wed, 25 Oct 2023 15:14:32 +0000 Date: Wed, 25 Oct 2023 16:14:27 +0100 From: Bruce Richardson To: Stephen Hemminger CC: Thomas Monjalon , Tyler Retzlaff , , Morten =?iso-8859-1?Q?Br=F8rup?= , Min Zhou , , David Marchand , Anatoly Burakov , Narcisa Vasile , Dmitry Kozlyuk , Konstantin Ananyev , Andrew Rybchenko Subject: Re: [PATCH] eal/unix: allow creating thread with real-time priority Message-ID: References: <20231024125416.798897-1-thomas@monjalon.net> <3767229.kQq0lBPeGt@thomas> <3187925.5fSG56mABF@thomas> <20231025080852.256ce3e0@hermes.local> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231025080852.256ce3e0@hermes.local> X-ClientProxiedBy: DU7PR01CA0030.eurprd01.prod.exchangelabs.com (2603:10a6:10:50e::19) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|LV2PR11MB6023:EE_ X-MS-Office365-Filtering-Correlation-Id: 878db09c-1b8b-4296-7782-08dbd56d171e X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mbbzbq8xSfjr2qrcace3NzFdSEhhnAOErNyLXH8k0STeJUKR2fhTXH9QV2+JGaNFYF8hzkozkkyZvhCKb5dII2GbZWkRtZQA1eLjPGeNkjUV1T8kKQZjH6++COm1vEJv3XwEwuM9lKCxltiYa4EEsThb7A5SpqVaiRV7vVcqaGm2KhA8n8tR/EDbDfNehV7Tp4raIKo2pK20l4fLtEPHB2f+kxVVmct5x9FNlbkSI/GqRT3CIzAVDInE/tSFvD0DolDoyvQdBlH6IqXmR4Cg8jfbOtBk1FtHcYagElEPwA5joECZ3nBJkThuvMbbN3MXKM3t7b8jLeVxh77++oAT+M03QFDj92YIbad0KvLuyW/XiRcBp6sGDZF8UkOQkZ1+TDx535701BQCF1XBSp4SjiW5e4O0h3xOUSXPeUIiSjbz7Mti/IrR1BMgm2DixwfupRSiC2m/SA0EIHzJGb2C8fJJ5XfYdnAvk+4qKjaSQChpMo/HGORrVU29PtbX51XqM0ykyPKm7EJ1Rc0TP6mzFzdzGiGF/WC/5a2MZ+ADWHJXG97wh1T7QrI+2VXqD5oRHnRx8BduUZCeUfN68lQXDc38cDDNCDzE3GMvHF7ClS8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(396003)(136003)(366004)(39860400002)(230922051799003)(1800799009)(451199024)(186009)(64100799003)(54906003)(6916009)(66946007)(66476007)(38100700002)(86362001)(316002)(66556008)(82960400001)(44832011)(6506007)(6666004)(6512007)(8936002)(26005)(6486002)(2906002)(5660300002)(478600001)(4744005)(8676002)(4326008)(41300700001)(7416002)(67856001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?0ZjXI5RWcLDTzFeOVfdZP3M1CAT105I4YQGrgHloLkEAZUmXw1ypjRKXtbG4?= =?us-ascii?Q?3RTANEMr+hZ+XgrJZiQNeo1bwhqhrVquWpPnYT9nuDgZ9nS+a9KOHzJkzRTM?= =?us-ascii?Q?HtqkStNSx6Zl6bi3Q0P+Gdy+uR5Or0Txu9aci5BKYgrwDp36lrxu/+70kDbo?= =?us-ascii?Q?Sc8dUfqftPXEoV2lpsowCXKlZyndUfE0eH3l4Xk59ghOJefUuM2SAeXx1wYM?= =?us-ascii?Q?oeHGISnEzwSy0LxMWDDrBfaeLcmPSAXlTEeHnusoT7oaWOoTRZbi02xEpUI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rC56yGDxhe1gwrIH08W6oHUeyuf20dfqsi?= =?us-ascii?Q?rCWh66lMj2Wy1D43yrSYGUvmIdBwjOmBRDWlMA3Xc7cznnopLElpxQcT3+8Y?= =?us-ascii?Q?y3BG/M7As+3LyWtT0OOn8VMyYzArV7iBRCwJdz+SQanqP6/9SZ3Y+V+C9qEI?= =?us-ascii?Q?CpzFVxxKIzztWjkdZib+pxgZpCgc+nJs4S+H0WMj4SUQb5Uy1j+GM7Dnj2n7?= =?us-ascii?Q?iHEhnjqyttFzWXJqyGegSwzZ++wk2oZnt8jL4tFX3MRC5GHnZmyHXQtFMcLK?= =?us-ascii?Q?AAnpskHSweOainrsB/yXM4Wbw+dX6GDfAKF0sCbX33rCDFmp4fyZlmt9n5Gf?= =?us-ascii?Q?bUnroRiin7gE3u2YvSDwXylA5Kbd0Pmv2wyYIK7I1PhLggGr3ZnLKLOnO7AZ?= =?us-ascii?Q?6QddvE3aNJ/jok6sfcSoCiM4r0NDvvsLix/pzDVMS8W85ltha666hI+qVSqX?= =?us-ascii?Q?Qw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 878db09c-1b8b-4296-7782-08dbd56d171e X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 15:14:32.0501 (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: dvApYtwLVkjcHHkW10u+8A4bOE4LSgHvYosSZHwdylgXycdBCvOwi+J+WKmccqsRHfyzwr0MVf6z7s4aW0m7w33lzxMrkl/i9V6AH3OZU7Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR11MB6023 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, Oct 25, 2023 at 08:08:52AM -0700, Stephen Hemminger wrote: > On Wed, 25 Oct 2023 15:44:25 +0200 > Thomas Monjalon wrote: > > > > > > > > > I'll try to pass the test by adding a sleep in the test thread. > > > > > > > > > > "sched_yield()" rather than sleep perhaps? Might better convey the > > > intention of the call. > > > > Do we have sched_yield on Windows? > > Windows has an equivalent but sched_yield() won't work here. > Since the DPDK thread is still higher priority than the kernel thread, > the scheduler will reschedule the DPDK thread. You need to sleep > to let kthread run. Interesting. Thanks for clarifying the situation.