All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: "Nambiar, Amritha" <amritha.nambiar@intel.com>
Cc: <netdev@vger.kernel.org>, <davem@davemloft.net>,
	<edumazet@google.com>, <pabeni@redhat.com>, <ast@kernel.org>,
	<sdf@google.com>, <lorenzo@kernel.org>, <tariqt@nvidia.com>,
	<daniel@iogearbox.net>, <anthony.l.nguyen@intel.com>,
	<lucien.xin@gmail.com>, <hawk@kernel.org>,
	<sridhar.samudrala@intel.com>
Subject: Re: [net-next,RFC PATCH 0/5] Configuring NAPI instance for a queue
Date: Thu, 18 Apr 2024 18:37:06 -0700	[thread overview]
Message-ID: <20240418183706.049a17cb@kernel.org> (raw)
In-Reply-To: <acbe612f-faaa-4c70-802f-87504ee7c274@intel.com>

On Thu, 18 Apr 2024 14:23:03 -0700 Nambiar, Amritha wrote:
> >> I am not sure of this. ethtool shows pre-set defaults and current
> >> settings, but in this case, it is tricky :(  
> > 
> > Can you say more about the use case for moving the queues around?
> > If you just want to have fewer NAPI vectors and more queues, but
> > don't care about exact mapping - we could probably come up with
> > a simpler API, no? Are the queues stack queues or also AF_XDP?
> 
> I'll try to explain. The goal is to have fewer NAPI pollers. The number 
> of NAPI pollers is the same as the number of active NAPIs (kthread per 
> NAPI). It is possible to limit the number of pollers by mapping 
> multiples queues on an interrupt vector (fewer vectors, more queues) 
> implicitly in the driver. But, we are looking for a more granular 
> approach, in our case, the queues are grouped into 
> queue-groups/rss-contexts. We would like to reduce the number of pollers 
> within certain selected queue-groups/rss-contexts (not all the 
> queue-groups), hence need the configurability.
> This would benefit our hyper-threading use case, where a single physical 
> core can be used for both network and application processing. If the 
> NAPI to queue association is known, we can pin the NAPI thread to the 
> logical core and the application thread to the corresponding sibling 
> logical core.

Could you provide a more detailed example of a desired configuration? 
I'm not sure I'm getting the point.

What's the point of having multiple queues if they end up in the same
NAPI?

      reply	other threads:[~2024-04-19  1:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-05 20:09 [net-next,RFC PATCH 0/5] Configuring NAPI instance for a queue Amritha Nambiar
2024-04-05 20:09 ` [net-next, RFC PATCH 1/5] netdev-genl: spec: Extend netdev netlink spec in YAML for queue-set Amritha Nambiar
2024-04-05 20:09 ` [net-next, RFC PATCH 2/5] netdev-genl: Add netlink framework functions for queue-set NAPI Amritha Nambiar
2024-04-06  0:20   ` David Wei
2024-04-08 19:45     ` Nambiar, Amritha
2024-04-05 20:09 ` [net-next, RFC PATCH 3/5] ice: Add support to enable/disable a vector Amritha Nambiar
2024-04-05 20:09 ` [net-next,RFC PATCH 4/5] ice: Handle unused vectors dynamically Amritha Nambiar
2024-04-05 20:09 ` [net-next, RFC PATCH 5/5] ice: Add driver support for ndo_queue_set_napi Amritha Nambiar
2024-04-09 23:21 ` [net-next,RFC PATCH 0/5] Configuring NAPI instance for a queue Jakub Kicinski
2024-04-11 22:46   ` Nambiar, Amritha
2024-04-12  1:47     ` Jakub Kicinski
2024-04-18 21:23       ` Nambiar, Amritha
2024-04-19  1:37         ` Jakub Kicinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240418183706.049a17cb@kernel.org \
    --to=kuba@kernel.org \
    --cc=amritha.nambiar@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=ast@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hawk@kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=lucien.xin@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@google.com \
    --cc=sridhar.samudrala@intel.com \
    --cc=tariqt@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.