From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id C19DA4320C;
	Thu, 26 Oct 2023 22:00:38 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id AEC14402D4;
	Thu, 26 Oct 2023 22:00:38 +0200 (CEST)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com
 [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id A18E6402A3
 for <dev@dpdk.org>; Thu, 26 Oct 2023 22:00:36 +0200 (CEST)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 313A25C024A;
 Thu, 26 Oct 2023 16:00:36 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Thu, 26 Oct 2023 16:00:36 -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=
 1698350436; x=1698436836; bh=5nrnbIpRzqjhD4z8Zy2tqcbNwwkj3ji6yVJ
 LBMXLfdA=; b=mZzjvCeDBkOqbdCMz62R2X2X2FqtBUSq4z5fJ7r+Ku4szDt8YGP
 EwIPSTW1HLxFtob6KM+d0L1hflPcjlebBETMM5i5ymrkYuoZsRmW/kZfvibEQPbR
 eQZsn/X49OlFIYxNV8GJpncqU20XHLv4bkFyB7kT98/AY1+Bb/IvGtJ9kEeW9VSR
 OTmse2aq2WxKh+yytT9NTGDQJBl+oheUXpVgEngbaQAsIotFip4JTniHj4+eM6Mo
 USbaZGHBAb1gfob6b1m6OmBmugDesESbRZq3rPOtKjHVv5bXrKy4qxgNUYSVUGv+
 uAsw3ndXeDg3pLPVj0gNzbQ9wngiH39VBrA==
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=
 1698350436; x=1698436836; bh=5nrnbIpRzqjhD4z8Zy2tqcbNwwkj3ji6yVJ
 LBMXLfdA=; b=VEC0TUJ6JTLFZ4OCa55qAxw9Cn9Bm9GenP4ZzdguH2ppPRwevNp
 K3j4HG9T483g1Z0Eakhf3LT7LurhL5JULtZEkDTwDlCOaaqYWcHTT5AaEIpZp2rd
 jLZ2EwPeJibgsVDU2AFNikU8c1ySp9pLwFV8RIHa0Ky5ExyfepL8Rt0uEEQ/Z/iE
 6NSs2Cjr/j6p0x2neISrQQ1H2LI3vvcXw40kj8igUkJJbGwRkzxtrRMm/aKy/b61
 iI2aaiNbwNPiRiKwswwSEHpi97YaMWY+ycrJMLM2uegqbsgbBk5Ji3fhLBpzDI7M
 skLbdzULr+hAYaSHreEW8MljAspYIPKl4Ng==
X-ME-Sender: <xms:Y8U6ZWjpLilyP24Cgm3bQoSOAYmwIWQyGZNXrtXc3qw8Cb9e_gZ3rQ>
 <xme:Y8U6ZXDtglIZiKOjLW4coZs_RYwl2xEchhiC9iaLVQ7LeVWPzqneq4t6mT2g2sB90
 OnwHg0vW8sL_UepMA>
X-ME-Received: <xmr:Y8U6ZeEQsr3zPAe8bWer4kaLBPpiwJQ-6SIwI3MSFzE2J6AkCkg38cmrbopLTeTxiLOCN-0RdRpK3aTijYegYm-XMA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledvgddugeefucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm
 rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc
 ggtffrrghtthgvrhhnpeejjefffffgffekfefflefgkeelteejffelledugefhheelffet
 heevudffudfgvdenucffohhmrghinhepughpughkrdhorhhgnecuvehluhhsthgvrhfuih
 iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho
 nhdrnhgvth
X-ME-Proxy: <xmx:Y8U6ZfTBSrLpom4wyZk6F879R5kLb-xDD6Gpr6KS7-9jyou7Qufv5w>
 <xmx:Y8U6ZTyRSbXmijMi70WvHMyBGmvU8NAzJ0lm3bOfSYdUbsLDcA8n4Q>
 <xmx:Y8U6Zd5aBbWsRabVG-otkTTnkS_fb_AUzoBZ3DK3mzUwhJnqgnRDXA>
 <xmx:ZMU6ZT_-3pIMGOwCslUrjemhuSef_agNxKVnqWP0HSztGr0pk939Gw>
Feedback-ID: i47234305:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 26 Oct 2023 16:00:34 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: stephen@networkplumber.org,
 Morten =?ISO-8859-1?Q?Br=F8rup?= <mb@smartsharesystems.com>,
 Tyler Retzlaff <roretzla@linux.microsoft.com>
Cc: dev@dpdk.org, David Marchand <david.marchand@redhat.com>
Subject: Re: [PATCH v5 0/2] allow creating thread with real-time priority
Date: Thu, 26 Oct 2023 22:00:33 +0200
Message-ID: <13374569.dW097sEU6C@thomas>
In-Reply-To: <20231026142749.1174372-1-thomas@monjalon.net>
References: <20231024125416.798897-1-thomas@monjalon.net>
 <20231026142749.1174372-1-thomas@monjalon.net>
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

26/10/2023 16:19, Thomas Monjalon:
> Real-time thread priority was been forbidden on Unix
> because of problems they can cause.
> Warnings and helpers are added to avoid deadlocks,
> so real-time can be allowed on all systems.
> 
> Thomas Monjalon (2):
>   eal: add thread yield functions
>   eal/unix: allow creating thread with real-time priority
> 
> v1: no yield at all
> v2: more comments, sched_yield() and Sleep(0) on Windows
> v3: 2 yield functions with sleep in realtime version
> v4: runtime warning, longer sleep on Unix and lighter yield on Windows
> v5: fix build and increase Unix sleep to 1 ms
> 
> Thomas Monjalon (2):
>   eal: add thread yield functions
>   eal/unix: allow creating thread with real-time priority

Now there is a test failing on Windows:
http://mails.dpdk.org/archives/test-report/2023-October/491475.html