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 2F256431A1; Wed, 25 Oct 2023 17:18:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1915A402B3; Wed, 25 Oct 2023 17:18:38 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id B388E40273; Wed, 25 Oct 2023 17:18:36 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id CE00F3200930; Wed, 25 Oct 2023 11:18:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 25 Oct 2023 11:18:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1698247114; x=1698333514; bh=YsHvWCKg7/eCpsJj00JCLtA4bNvOHcxuq1O n+IXZT6o=; b=JNuGiW3uhV2t/mBgbQxdA6nZGWJbNFZ9AXkweWZUMGV/B5Guqtp yT9Sqv/PMokXiu/Q0yC/azXihOcv40TYl4gdZ6uJp6148aG6i0puPnOBbPEAkkYZ 7ksH7+M+uyZ9F9A9NyyXCqmM6Hx+99GgtgDGVGNluuIcVEd2r/bY6LUETMH0c381 6Vkq4cYsTcqFg1nQD+QO/Oiyp+NRdScmNP+svjoc4KVivRygsQTayNI5o92h6+SS 95qtZYYj8MEWGwZam65c8G22roMvzf2ooGdJTPvyMJepT4ts3EyMhoBM1DmfzZHo wqY16Hztaf6zo+/xuX82AOzEh85FcG3eQTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698247114; x=1698333514; bh=YsHvWCKg7/eCpsJj00JCLtA4bNvOHcxuq1O n+IXZT6o=; b=VNOQsNeQ2h2WwRibrZa7gbocooSV+JgDaK2qhNubprSs4rwMqmA VLwHO8k/PAMmz8F9UboBiZVoDowpHdIMh0JPADuv0ly+8LaWra9U/CivpbHHQ1M+ q6uy483LqV/7ZKhFT2Z1qEocgIrzZQPTNflxeIgAR5bgnCUj/hnAer+X9gCeqg1q cD0Xq6DflWJ7b+4JbATkifyVgaPRvoIxED3e/EVUevoudKfkvTYYADWVf98MyE3i W2uFIyEd7HpG7wWx99PfF4gsCGiZW9UmHIcDVL7gOOhr2e0aYuWIyuU5xtlpf5w1 4tCExV47pCxYbGrAPeGysN7vXdGEU/9LdAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnheptdejieeifeehtdffgfdvleetueeffeehueejgfeuteeftddtieek gfekudehtdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Oct 2023 11:18:32 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger , Bruce Richardson Cc: Tyler Retzlaff , dev@dpdk.org, Morten =?ISO-8859-1?Q?Br=F8rup?= , Min Zhou , stable@dpdk.org, David Marchand , Anatoly Burakov , Narcisa Vasile , Dmitry Kozlyuk , Konstantin Ananyev , Andrew Rybchenko Subject: Re: [PATCH] eal/unix: allow creating thread with real-time priority Date: Wed, 25 Oct 2023 17:18:30 +0200 Message-ID: <1772583.VLH7GnMWUR@thomas> In-Reply-To: References: <20231024125416.798897-1-thomas@monjalon.net> <20231025080852.256ce3e0@hermes.local> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 25/10/2023 17:14, Bruce Richardson: > 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. Indeed interesting. I've just sent a v2 before reading this. So I should try a v3 with a sleep. But then I need to find a better name than rte_thread_yield. Ideas?