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 71B78431A1 for ; Wed, 25 Oct 2023 17:08:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A859402B3; Wed, 25 Oct 2023 17:08:57 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id 025D840273 for ; Wed, 25 Oct 2023 17:08:55 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1c9de3f66e5so38987045ad.3 for ; Wed, 25 Oct 2023 08:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1698246535; x=1698851335; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=egT7l8efWEJsVW5hIY0qAM4+doIZQlMlSte7buFkFWo=; b=mDSmfgi4GIQp8trn6V4uFm1qr2QnF882ZYBpuXBvwVuscgSFG8JfJy7yAnhBGuIW5y zSfjxyfYDZHcSTVB0maj0qdUm+1XdKTrSC9Nr8wPOZykkgRyeGyv8EBlIpzw0HaP8k93 +44bS69sIQIg3KggdTGet7UOGZEohUVziGeLz+XEEUveP7OpZ7NrSvjIJ+6D1h9/eqGJ lDSHEumyZnupZIr+olmMnK0YjhnJ2wD4892WsL8MQtFR0HYSwma2sAwDaVK+itKTSaaC sxy4nG/Ty8braEs1lNcfjiNfwZH07w3Dk7h4RQyBMmty+eGd7FbzKL1fuVD/S39GKTWZ fpMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698246535; x=1698851335; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=egT7l8efWEJsVW5hIY0qAM4+doIZQlMlSte7buFkFWo=; b=lje6GqSkXl1dEk5ovzkX0j3sG8lVJry59A3arjHi0yZjKtXXWjheOlhkFi4E6fAY8m EWDIuSXT90pb36LF4GMGD5mOfnxvSL013pYwVyRhfVK6NhCGLoIz+jN8jF423HwFzwxK B/+IYZURcGm/5a+wwdosBnkdkpsf7826unjcPg2zMuAdicQgXs5cEyu9bcijWn2E53iH BkHHImFAkEZDO8SVYnIcIhpGz1R4mKoY3kPzTDnarcLZVtoq+C0ijJ0ufULrYrDIVavu Rd98/rp8CJzV/ZmlPPYkpkZp6EtuUCkRGVkMjFW4DNLvb5m7eZpUb/qtSPpQXsCRDVPn FHfA== X-Gm-Message-State: AOJu0Yy0gLJIfCT9C0pfIzojS7b/QAppbAqwCp+BqHGCGhbVAHuuGZs+ FZEiY634+OBzxgKqRtMUsyHN1w== X-Google-Smtp-Source: AGHT+IFYeE8vW7E44c2sQ6pYRwt/VYIBC9RsCHUy0DaNUsAb/YysRuPb+Bj7t1QNzxhhWe/Ov/Bgrw== X-Received: by 2002:a17:902:b28c:b0:1c4:335:b06d with SMTP id u12-20020a170902b28c00b001c40335b06dmr13238770plr.32.1698246534960; Wed, 25 Oct 2023 08:08:54 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id t1-20020a170902e84100b001c60ba709b7sm6089881plg.125.2023.10.25.08.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:08:54 -0700 (PDT) Date: Wed, 25 Oct 2023 08:08:52 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: Bruce Richardson , Tyler Retzlaff , dev@dpdk.org, Morten =?UTF-8?B?QnLDuHJ1?= =?UTF-8?B?cA==?= , 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 Message-ID: <20231025080852.256ce3e0@hermes.local> In-Reply-To: <3187925.5fSG56mABF@thomas> References: <20231024125416.798897-1-thomas@monjalon.net> <3767229.kQq0lBPeGt@thomas> <3187925.5fSG56mABF@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, 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.