Thread (15 messages) 15 messages, 7 authors, 2026-06-11

Re: [PATCH v3 1/4] scsi: scan: allocate sdev and starget on the NUMA node of the host adapter

From: Hannes Reinecke <hare@suse.com>
Date: 2026-06-10 06:00:39
Also in: linux-block, linux-scsi, linuxppc-dev, target-devel, virtualization, xen-devel

On 6/9/26 14:18, Sumit Saxena wrote:
From: James Rizzo <redacted>

When a host adapter is attached to a specific NUMA node, allocating
scsi_device and scsi_target via kzalloc() may place them on a remote
node.  All hot-path I/O accesses to these structures then cross the NUMA
interconnect, adding latency and consuming inter-node bandwidth.

Use kzalloc_node() with dev_to_node(shost->dma_dev) so allocations land
on the same node as the HBA, reducing cross-node traffic and improving
I/O performance on NUMA systems.

Signed-off-by: James Rizzo <redacted>
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
---
  drivers/scsi/scsi_scan.c | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Hannes Reinecke <hare@kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.com                               +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help