OSDN Git Service

scsi: mpt3sas: Affinity high iops queues IRQs to local node
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Fri, 31 May 2019 12:14:40 +0000 (08:14 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:26 +0000 (19:46 -0400)
commit728bbc6cbff70051813730fb7977f5d99d867e12
treefe582b9324570b921029611e8a3668937a21431f
parent998c3001d31a278c9fb5cf68a2b0285dc7c76cdd
scsi: mpt3sas: Affinity high iops queues IRQs to local node

High iops queues are mapped to non-managed irqs. Set affinity of
non-managed irqs to local numa node.  Low latency queues are mapped to
managed irqs.

Driver reserves some reply queues for max iops (through
pci_alloc_irq_vectors_affinity and .pre_vectors interface). The rest of
queues are for low latency.

Based on io workload in io submission path, driver will decide which group
of reply queues (either high iops queues or low latency queues) to be
used. High iops queues will be mapped to local numa node of controller and
low latency queues will be mapped to cpus across numa nodes. In general,
high iops and low latency queues should fit into 128 reply queues
which is the max number of reply queues supported by Aero/Sea.

Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c