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 BE35EA034F; Wed, 31 Mar 2021 23:12:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41D79140EB8; Wed, 31 Mar 2021 23:12:58 +0200 (CEST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by mails.dpdk.org (Postfix) with ESMTP id B8D1E140EB7 for ; Wed, 31 Mar 2021 23:12:56 +0200 (CEST) Received: by mail-lf1-f51.google.com with SMTP id i26so31059723lfl.1 for ; Wed, 31 Mar 2021 14:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uQ+9/6Yvr3vQ/j8Ydc9VnslGL6LEIZe2M0ieUP5THMU=; b=W1epAz+TfH3A6M7S4LQ3OwM2D7QIbVQWmvEXdF+fhL82Z/RJE4axFrS+TFMbPsaOv1 94gX2/YsYupERk0q6lxSVoP8xmQkEFZi8xXwcQ0UkCEreGqDNWxQYenarRbBZFPpcH6I Gl1trdAYPrBOlO71qBN+ki/bS2rLoC5E+qWW08z66O15lf2KSQB5qIJc1snQsosyl/az zM4TtnKjeXl4xvVPdKTpUip0HswOjgGmoV+JfaKfaaR5iGW8qS9CzabtemnNdC/QqYXK VEZ6Sq83nq5tLasd1Si9xkXnHOmXHLfM5co3llM8/dZA2j6YsMhVSnaBb6lBeZdIKY09 ebYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uQ+9/6Yvr3vQ/j8Ydc9VnslGL6LEIZe2M0ieUP5THMU=; b=H9n0rCf07GeTYV+2xN/R7aVOZIIYHLFKGPfwOlRjqj6ze2l3UNGAq9XJXuV5IF8kR1 WdlH1Y1j/JFICgUcrRC8/IATZagP+iXmCy2wPC8pk2iptgiZCgS/2XvzGuWLI09VCJ9j SbPALnEDMo+k6RrYDN/nYRK79p5wRDU2qUp8njibwvyVIJlXWNfTibaPSA5q9cyVA8lm r0Ord5zDmIco7fQAevHnKDAKJj0+Z5LqNL0cu8EIaUd7+4O+rYeUwu54O3FmkOzkJMEJ 3YqzMN7k3+lWNzFc8+Jcr7fm0La8s9XIBJt1maNvLjliWyif0Uhlnsju/Qo+5TSFmnQz zc6w== X-Gm-Message-State: AOAM533vBf52HkWQU8916PVkO3qg5yzv6ppoIPAJfPuZ4aBhV8HGkdtm RApCGkMRWUV8zDn8Ffh3Ubg= X-Google-Smtp-Source: ABdhPJw/XivhoFRf1XgT7dcUKJhRyaU5ZYed+SiNwp4YDxqgqDi/9ap6KKxf8IwiNE+xNMDeDT2kAg== X-Received: by 2002:a19:8682:: with SMTP id i124mr3208109lfd.409.1617225176188; Wed, 31 Mar 2021 14:12:56 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id f20sm366751ljn.123.2021.03.31.14.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 14:12:55 -0700 (PDT) Date: Thu, 1 Apr 2021 00:12:54 +0300 From: Dmitry Kozlyuk To: Stephen Hemminger Cc: Narcisa Ana Maria Vasile , dev@dpdk.org, thomas@monjalon.net, khot@microsoft.com, navasile@microsoft.com, dmitrym@microsoft.com, roretzla@microsoft.com, talshn@nvidia.com, ocardona@microsoft.com, bruce.richardson@intel.com, david.marchand@redhat.com, pallavi.kadam@intel.com Message-ID: <20210401001254.2a6db477@sovereign> In-Reply-To: <20210330141139.728ccea2@hermes.local> References: <1616802771-31578-10-git-send-email-navasile@linux.microsoft.com> <1617057640-24301-1-git-send-email-navasile@linux.microsoft.com> <1617057640-24301-10-git-send-email-navasile@linux.microsoft.com> <20210330141139.728ccea2@hermes.local> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v5 09/10] eal: add EAL argument for setting thread priority 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 Sender: "dev" 2021-03-30 14:11 (UTC-0700), Stephen Hemminger: > On Mon, 29 Mar 2021 15:40:39 -0700 > Narcisa Ana Maria Vasile wrote: > > > From: Narcisa Vasile > > > > Allow the user to choose the thread priority through an EAL > > command line argument. > > > > The user can select the thread priority to be either 'normal' > > or 'critical': > > --thread-prio normal > > --thread-prio realtime > > > > Signed-off-by: Narcisa Vasile > > The discussion internally was that this was intended to resolve issues on Windows. > So it makes sense for Windows, but it is not something that we want to have on Linux. > Could you make this Windows only, and add update the documentation please. > > I just don't want Linux users discovering it, trying it, then reporting more bugs. Can you share more details of that discussion? Is realtime-critical needed not for busy-polling apps (which indeed cause starvation), but for interrupt-driven ones to process packets ASAP? If it's true, then maybe NetUIO can instead give priority boost to these threads when notifying them about interrupts (Omar? DmitryM?). This can be configurable via devargs. One downside is that every kernel driver has to support it, currently Mellanox bifurcated driver and NetUIO. But they will need some interrupt-related IOCTLs anyway.