Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] nvme-tcp: NIC topology aware I/O queue scaling and queue info export
@ 2026-11-23 17:37 Nilay Shroff
  2026-11-23 17:37 ` [PATCH v4 1/2] nvme-tcp: expose per-queue socket addresses via sysfs Nilay Shroff
  2026-11-23 17:37 ` [PATCH v4 2/2] nvme: document NVMe/TCP per-queue address sysfs attribute Nilay Shroff
  0 siblings, 2 replies; 3+ messages in thread
From: Nilay Shroff @ 2026-11-23 17:37 UTC (permalink / raw)
  To: kbusch, dwagner, hch, hare, sagi, chaitanyak, gjoyce
  Cc: linux-nvme, Nilay Shroff

This patch series has been revised based on feedback from the netdev
community [1].

Following the feedback, the logic for determining the number of fabric I/O
queues (nr-io-queues) has been now moved to userspace in nvme-cli [2]. As a
result, the first two patches from the earlier series v2, which implemented
this logic in the kernel driver, have been dropped in series v3. 

Based on further feedback received on v3, this revision also moves the
export of NVMe/TCP I/O queue information from debugfs to sysfs, making
it easier for userspace tools to access the information and configure
host-side network tuning.

The first patch exports the socket endpoint addresses of each NVMe/TCP
I/O queue through a new per-queue sysfs attribute named address.
This provides the TCP flow information (source/destination IP addresses
and ports) for each I/O queue. The associated CPU assignment can be
retrieved through the existing io_cpu attribute.

Together, these attributes provide userspace tools with the information
needed to configure:
   - IRQ affinity
   - RPS/XPS
   - ntuple steering
   - or any other scaling as deemed feasible

Together with tunning, these changes allow better alignment of:
   flow -> NIC queue -> IRQ -> CPU -> NVMe/TCP I/O worker

Improving this alignment can enhance flow-to-CPU locality, potentially
improving performance and reducing I/O latency. Performance evaluation
results comparing the baseline with the tuned configuration are
available in [3].

Thanks!

[1]: https://lore.kernel.org/all/20260807160904.2eb1b3d1@kernel.org/
[2]: https://github.com/linux-nvme/nvme-cli/pull/4140
[3]: https://lore.kernel.org/all/20260731073918.614014-1-nilay@linux.ibm.com/

Changes from v3
  - Moved per-queue tcp flow information from debugfs to sysfs
    (Daniel Wagner, Hannes Reinecke)
Link to v3: https://lore.kernel.org/all/20261026123411.1988949-4-nilay@linux.ibm.com/   
  
Changes from v2
  - Dropped patch #1 and #2 from v2
  - Added new debugfs attribute parameter "is_visible" which could be useful
    to hide the attribute for certain configuration or transport. 
Link to v2: https://lore.kernel.org/all/20260731073918.614014-1-nilay@linux.ibm.com/

Nilay Shroff (2):
  nvme-tcp: expose per-queue socket addresses via sysfs
  nvme: document NVMe/TCP per-queue address sysfs attribute

 Documentation/ABI/stable/sysfs-nvme | 18 +++++++++++
 drivers/nvme/host/tcp.c             | 50 +++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

-- 
2.53.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-23 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 17:37 [PATCH v4 0/2] nvme-tcp: NIC topology aware I/O queue scaling and queue info export Nilay Shroff
2026-11-23 17:37 ` [PATCH v4 1/2] nvme-tcp: expose per-queue socket addresses via sysfs Nilay Shroff
2026-11-23 17:37 ` [PATCH v4 2/2] nvme: document NVMe/TCP per-queue address sysfs attribute Nilay Shroff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox