* blk-mq and interrupt affinity
@ 2016-01-29 9:40 Hannes Reinecke
0 siblings, 0 replies; only message in thread
From: Hannes Reinecke @ 2016-01-29 9:40 UTC (permalink / raw)
To: Jens Axboe
Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org,
Christoph Hellwig
Hi all,
Looking through the blk-mq code I tried to figure out if and how the
driver is supposed to set any interrupt affinity when block-mq is
enabled.
Thing is, for your typical driver you would set the interrupt
affinity during init time (eg for SCSI drivers during host_alloc).
But to set the interrupt affinity you'd need the cpumask, which is
only populated way later during queue setup.
So now I got two bad choices: either I have to delay setting the
interrupt affinity until after the queue is created, making things
awkward with several queues, or I have to out-guess the blk-mq
mapping algorithm and set the interrupt affinity prior to queue setup.
Tests with the lpfc driver found that one absolutely _does_ want to
do irq affinity; not doing so limits the performance to single-queue
results.
So what is the expected strategy here?
Or am I just too stupid to find it?
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-29 9:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-29 9:40 blk-mq and interrupt affinity Hannes Reinecke
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.