Skip to content

blk-mq: Improve performance of non-mq IO schedulers with multiple HW queues

Jan Kara linux-block 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesApplied
  2. v22 patches 3 repliesSuperseded
  3. v1 RFC2 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Modified code to avoid useless sbitmap_any_set() calls on submit path

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2Revert "blk-mq, elevator: Count requests per hctx to improve performance"block/bfq-iosched.c block/blk-mq.c block/mq-deadline.c +1 more+0 -161 reply
2/2blk-mq: Improve performance of non-mq IO schedulers with multiple HW queuesblock/blk-mq.c block/kyber-iosched.c include/linux/elevator.h+63 -61 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMing Lei
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/2 v3] blk-mq: Improve performance of non-mq IO schedulers with multiple HW queues

Hello!

This patch series aims to fix a regression we've noticed on our test grid when support for multiple HW queues in megaraid_sas driver was added during the 5.10 cycle (103fbf8e4020 scsi: megaraid_sas: Added support for shared host tagset for cpuhotplug). The commit was reverted in the end for other reasons but I believe the fundamental problem still exists for any other similar setup. The problem manifests when the storage card supports multiple hardware queues however storage behind it is slow (single rotating disk in our case) and so using IO scheduler such as BFQ is desirable. See the second patch for details.

Changes since v2
* Modified code to avoid useless sbitmap_any_set() calls on submit path

Changes since v1
* Fixed queue running code to don't leave pending requests that bypass IO scheduler.

Honza