Skip to content

blk-mq: improve IO perf in case of none io sched

Ming Lei linux-block 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesIn review
  2. v23 patches 6 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- export dispatch busy from debugfs as suggested by Jens
- add comment on blk_mq_update_hctx_busy() as suggested by Christoph

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3blk-mq: use list_splice_tail_init() to insert requestsblock/blk-mq.c+7 -70 replies
2/3blk-mq: only attempt to merge bio if there is rq in sw queueblock/blk-mq-sched.c+2 -10 replies
3/3blk-mq: dequeue request one by one from sw queue iff hctx is busyblock/blk-mq-debugfs.c block/blk-mq-sched.c block/blk-mq.c +1 more+42 -114 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigKashyap Desai
SeriesT-b
1/3R-b
2/3R-b
3/3

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 V3 0/3] blk-mq: improve IO perf in case of none io sched

Hi,

The 1st 2 patch improves ctx->lock uses, and it is observed that IOPS may be improved by ~5% in rand IO test on MegaRaid SAS run by Kashyap.

The 3rd patch fixes rand IO performance regression on MegaRaid SAS test, still reported by Kashyap.

V3:
- export dispatch busy from debugfs as suggested by Jens
- add comment on blk_mq_update_hctx_busy() as suggested by Christoph

V2:
- fix list corruption in patch 1/3

Ming Lei (3):
blk-mq: use list_splice_tail_init() to insert requests
blk-mq: only attempt to merge bio if there is rq in sw queue
blk-mq: dequeue request one by one from sw queue iff hctx is busy

 block/blk-mq-debugfs.c |  9 +++++++++
 block/blk-mq-sched.c   | 14 ++++----------
 block/blk-mq.c         | 44 ++++++++++++++++++++++++++++++++++++--------
 include/linux/blk-mq.h |  3 ++-
 4 files changed, 51 insertions(+), 19 deletions(-)
Cc Kashyap Desai <[email protected]>
Cc Laurence Oberman <[email protected]>
Cc Omar Sandoval <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Bart Van Assche <[email protected]>
Cc Hannes Reinecke <[email protected]>
Signature · 1 line
2.9.5