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 5A3D8431A1; Wed, 25 Oct 2023 17:08:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99EEF40A6F; Wed, 25 Oct 2023 17:08:57 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 03C45402B3 for ; Wed, 25 Oct 2023 17:08:55 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1c9bf22fe05so39063065ad.2 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=FPYiideE7A/Up8ZK4QoLiEuIUetXCQeM0VjHaJClP8WIy6uKM1Hv70DZZb+MkRQPti dYj7B+6lf4eyPmuE6/IKQxodawsEkr2zxOxBZQioJ9z4S5zN3k7qBpUsA+ktvP6uZNB5 +OJv7U+UdITHUtsxCp26qPnAYYakrtzzBVHKMBVQNcghZab/yzsXq4k39tzOBbF2g+/p MIgqwFRq7Ix01OLZ5I1HzZnoxLig6RT4c4TOWY29gSSpqaDwzkQE0WP0aCPSBzMViXbB eHwkTX4aISCJR/8TylSKlax1fVwKpErdnPWScwD7ATpRb7m9N8PgTIN2A/IN03fH+ovS i/Xg== X-Gm-Message-State: AOJu0YzBxuK41H3MEwDIxNAjC+4Tpgy7DuczdSum26yIKyXOj2vtuqrN 4mDQTcbS9kh5W6CLE9RutEA4wA== 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: 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 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.