From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1A58606A684 for ; Tue, 1 Dec 2026 09:52:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=wb6rY5jT; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=VVA5pXuK DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=iZOZfCe8QztZsBzxijicPh+2+/CiJmL+fdHaOA+yZ3A=; b=wb6rY5jTMnrUZcVORqIgf5PSAk /KY1qqzFtrHpFsDOxhjrscl1SrsS9ayecBNWTc/B9Jk3PhOOVfva/uYp/rNKuzrolxCreQUQXdMu6 9uUcn6SXtA1pMZmVkYZ7yodh44G6ik4Gyt8c1iJEc7TqBzotVHavxQfkurdy9zWlHtjOYGK7BVkcq 5KMy/aOeaJOZkeqAvY7fx2t8yjoJsbhHKS5XBczIVR2aFM3dtncWhq9AzVAa3nlPS35iQnef4w/VJ v5NVvnApnxyK0PyVTUWVZ/NgRlYAJFfMD8j3YuYqyMCBYXAjgbF/KoHgyU6xWHOK1IMSaYric+KF7 yrn+l6mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYKXA-00000007GkT-1Kfo; Tue, 01 Dec 2026 09:52:24 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYKX8-00000007GjK-0o1X for linux-nvme@lists.infradead.org; Tue, 01 Dec 2026 09:52:23 +0000 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12ZTla3202059; Tue, 1 Dec 2026 09:51:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pp1; bh=iZOZfCe8QztZsBzxijicPh+2+/CiJmL+fdHaOA+yZ 3A=; b=VVA5pXuKL44tvtPf4/yVFv/5nHFwBv6olIa20/oqFmvFgbKCb9Jiv69On eLA7677Db0F/OeF0uEdaSnbZz3WmDhYN9HZ/W1q6uEL/d8rCVUmT6J0iM+ASxWYh OQlooOARsuPCdNa52yCBsFa6NxWQ2MWLQHtgzq1TLhvsTV6+lsZvcsV+cgwBC9We O2DQUJ4ITGO8KabFQfCqBVMV0LQbB8uC87WDysi3l/OvRGLGi/89MNHs9mvWjkH0 /tb5E7DDys8hYbd0QjEHA1xuX9GNuhQ4bUGxzP6yiGPB3tOUgMJdpYWBiNLaEg6o 0QIkCu+7JhnIfg86unGDqAd75/Nbw== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j7pmt42dj-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 09:51:56 +0000 (GMT) Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B17henH186134; Tue, 1 Dec 2026 09:51:55 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4j89nvgr1j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 09:51:55 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6B19pr4b43254176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 1 Dec 2026 09:51:53 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3B912004D; Tue, 1 Dec 2026 09:51:52 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 44C212004B; Tue, 1 Dec 2026 09:51:49 +0000 (GMT) Received: from li-a84c74cc-2b13-11b2-a85c-acdd023f0674.ibm.com.com (unknown [9.61.17.248]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 1 Dec 2026 09:51:48 +0000 (GMT) From: Nilay Shroff To: kbusch@kernel.org, dwagner@suse.de, hch@lst.de, hare@suse.de, sagi@grimberg.me, chaitanyak@nvidia.com, gjoyce@linux.ibm.com Cc: linux-nvme@lists.infradead.org Subject: [PATCH v5 0/1] nvme-tcp: NIC topology aware I/O queue scaling and queue info export Date: Tue, 1 Dec 2026 15:21:43 +0530 Message-ID: <20261201095146.510810-3-nilay@linux.ibm.com> X-Mailer: git-send-email 2.53.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0g_jvL8eR3sG5fbFs3RMSnEaRI5aAcfy X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAzOCBTYWx0ZWRfX8qVBjvfooBRT Qa/5JtYobIFZcksx0TjbQO8RGaKX/jjXWUwhASSMwsZo2zrj/E+xKPJEqh+C74r0lyq/fKSVA8R rnM0oCqV4DOTt2s7ogItkNofJuiEZE1jcLVO2p3P0jkZozno4Iq9Cd6LL/D/JHEb7VxchI69aYn OSdV4o6guLxQbRSWpxwi3H+LQAtR9UgJyHr3m7iAQdAgeR4oouJWd6HwOudeLiO7SPILDzsLRLX PnuGLZEZyZ8cYhmWHWhOPUxGY5QckpzLzVE/x5S+5s8oMGqabnB/fE5FGuySZhr1LgT85uCq2hu OcfqInzJjtED3/k0dKCJPr5TzT99INHlXEbfvFahHEyqg1Nf5Gjy5l0pqet/ebSdD/rDGO+15pU RIVMdElbnoj7ahKcUJDJ9/Bexrrusau5n8hZVnk3V5Cy9LWCu3JhNoDeMfaywh6ISoWIa6hHrxT Bexh8Pj84ytcxf8td8A== X-Proofpoint-GUID: 0g_jvL8eR3sG5fbFs3RMSnEaRI5aAcfy X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAzOCBTYWx0ZWRfX4dIjdkcErJH5 4thPjIZq3V3LrCwZfgGxdRDxwKXReqhpjPpcH9w5M/9Me2Egiqw4EFOe6SZwXe7yyKimHH83LKY 7gHkkNprA4U88m+/+wLxy/C4FhDVcDU= X-Authority-Analysis: v=2.4 cv=U9cHnuru c=1 sm=1 tr=0 ts=6b0e98bc cx=c_pps a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=VwQbUJbxAAAA:8 a=NEAV23lmAAAA:8 a=VnNF1IyMAAAA:8 a=6zI6yM-bqozbs1XlkEoA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010038 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_015222_236111_E2419844 X-CRM114-Status: GOOD ( 17.35 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 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 v4 - Squashed the ABI documentation changes into first patch and so with that now this series only has one patch (Hannes Reinecke) - Renamed traddr, trsvcid, host_traddr and host_trsvcid to dip, dport sip and sport respectively to match the generic terms used for tcp queue socket connection endpoint - show IPv6 scope id along with IPv6 address if scope-id is non-zero. Link to v4: https://lore.kernel.org/all/20261123173727.2022020-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 (1): nvme-tcp: expose per-queue socket addresses via sysfs Documentation/ABI/stable/sysfs-nvme | 25 ++++++++++++ drivers/nvme/host/tcp.c | 59 +++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) base-commit: 1c2ff060b8144fa816e7db751a8ed47c86032c92 -- 2.53.0