Skip to content

blk-mq: introduce new queue attribute async_depth

Yu Kuai linux-block lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest7 patches 1 replyIn review

Changes in v3 from the cover letter

- use guard()/scope_guard() in patch 3;
- add review tag other than patch 3;

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7block: convert nr_requests to unsigned intinclude/linux/blkdev.h+1 -10 replies
2/7blk-mq-sched: unify elevators checking for async requestsblock/bfq-iosched.c block/blk-mq-sched.h block/kyber-iosched.c +1 more+8 -30 replies
3/7blk-mq: add a new queue sysfs attribute async_depthblock/blk-core.c block/blk-mq.c block/blk-sysfs.c +2 more+84 -251 reply
4/7kyber: covert to use request_queue->async_depthblock/kyber-iosched.c+5 -280 replies
5/7mq-deadline: covert to use request_queue->async_depthblock/mq-deadline.c+5 -340 replies
6/7block, bfq: convert to use request_queue->async_depthblock/bfq-iosched.c+17 -260 replies
7/7blk-mq: add documentation for new queue attribute async_dpethDocumentation/ABI/stable/sysfs-block+34 -00 replies

Reviews trailers per patch

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

PatchNilay ShroffBart Van Assche
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b R-b
6/7R-b
7/7R-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 v3 0/7] blk-mq: introduce new queue attribute async_depth

From: Yu Kuai <[email protected]>

Changes in v3:
- use guard()/scope_guard() in patch 3;
- add review tag other than patch 3;
Changes in v2:
- keep limit_depth() method for kyber and mq-deadline in patch 3;
- add description about sysfs api change for kyber and mq-deadline;
- improve documentation in patch 7;
- add review tag for patch 1;

Background and motivation:

At first, we test a performance regression from 5.10 to 6.6 in downstream kernel(described in patch 5), the regression is related to async_depth in mq-dealine.

While trying to fix this regression, Bart suggests add a new attribute to request_queue, and I think this is a good idea because all elevators have similar logical, however only mq-deadline allow user to configure async_depth.

patch 1-3 add new queue attribute async_depth;
patch 4 convert kyber to use request_queue->async_depth; patch 5 covnert mq-dedaline to use request_queue->async_depth, also the performance regression will be fixed;
patch 6 convert bfq to use request_queue->async_depth;

Yu Kuai (7):
block: convert nr_requests to unsigned int
blk-mq-sched: unify elevators checking for async requests
blk-mq: add a new queue sysfs attribute async_depth
kyber: covert to use request_queue->async_depth
mq-deadline: covert to use request_queue->async_depth block, bfq: convert to use request_queue->async_depth
blk-mq: add documentation for new queue attribute async_dpeth

 Documentation/ABI/stable/sysfs-block | 34 +++++++++++++++
 block/bfq-iosched.c                  | 45 ++++++++-----------
 block/blk-core.c                     |  1 +
 block/blk-mq-sched.h                 |  5 +++
 block/blk-mq.c                       | 64 +++++++++++++++++-----------
 block/blk-sysfs.c                    | 42 ++++++++++++++++++
 block/elevator.c                     |  1 +
 block/kyber-iosched.c                | 33 +++-----------
 block/mq-deadline.c                  | 39 +++--------------
 include/linux/blkdev.h               |  3 +-
 10 files changed, 152 insertions(+), 115 deletions(-)
Signature · 1 line
2.51.0