Skip to contentSkip to conversation

blk-mq, scsi-mq, UFS

DISCUSSION Andras Kovacs 2 participants 4 messages Sep 26, 2014 – Sep 27, 2014 SCSI

lore
Share & tools
lore
#0 lore raw

Hi all,

could someone explain to me:

- what is the difference between blk-mq and scsi-mq
- why don't I observe large speedups when running the same tiotests on Linux v3.12 (which has no blk-mq) and Linux v3.14 (which does have blk-mq) on a Xilinx Zynq development board (the two Linux versions are configured by Xilinx Zynq and I know only how to add kernel command line parameters)?
- when Linux v3.17 becomes available (and Xilinx Zynq ports it for their development board) will I see large speedups reading/writing to the target SDD (which is driven through the UFS driver)?

Any and all info would be greatly appreciated.

#1 lore raw

Andras Kovacs <neoteny <at> freemail.hu> writes:

reading/writing to the target SDD (which is driven through the UFS driver)?

Of course I meant SSD.

#2 lore raw
In reply to Andras Kovacs
Quoted 5 lines · Andras Kovacs

Hi all,

could someone explain to me:

- what is the difference between blk-mq and scsi-mq

blk-mq is the actual block layer, while scsi-mq enables the scsi subsystem to use blk-mq. Any driver that wish to use blk-mq, has to explicit hook into it.

Quoted 4 lines

- why don't I observe large speedups when running the same tiotests on Linux v3.12 (which has no blk-mq) and Linux v3.14 (which does have blk-mq) on a Xilinx Zynq development board (the two Linux versions are configured by Xilinx Zynq and I know only how to add kernel command line parameters)?

Only the virtio driver (and the null blk driver) have been converted to blk-mq in 3.14.

Quoted 3 lines

- when Linux v3.17 becomes available (and Xilinx Zynq ports it for their development board) will I see large speedups reading/writing to the target SDD (which is driven through the UFS driver)?

Depends if you're CPU bound. If you are, then a speedup is expected. You will at least see lower CPU usage.

scsi-mq has to be explicit enabled with the scsi_mod.use_blk_mq=Y in the kernel boot options for 3.17 until it is marked stable.

Quoted 8 lines

Any and all info would be greatly appreciated.

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Matias Bjorling <m <at> bjorling.me> writes:

Thank you for your answers; now things are somewhat clearer.