Skip to content

Commit 2c04718

Browse files
hailan94axboe
authored andcommitted
blk-mq: add documentation for new queue attribute async_dpeth
Explain the attribute and the default value in different case. Signed-off-by: Yu Kuai <yukuai@fnnas.com> Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2110858 commit 2c04718

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Documentation/ABI/stable/sysfs-block

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,40 @@ Description:
609609
enabled, and whether tags are shared.
610610

611611

612+
What: /sys/block/<disk>/queue/async_depth
613+
Date: August 2025
614+
Contact: linux-block@vger.kernel.org
615+
Description:
616+
[RW] Controls how many asynchronous requests may be allocated in the
617+
block layer. The value is always capped at nr_requests.
618+
619+
When no elevator is active (none):
620+
- async_depth is always equal to nr_requests.
621+
622+
For bfq scheduler:
623+
- By default, async_depth is set to 75% of nr_requests.
624+
Internal limits are then derived from this value:
625+
* Sync writes: limited to async_depth (≈75% of nr_requests).
626+
* Async I/O: limited to ~2/3 of async_depth (≈50% of nr_requests).
627+
628+
If a bfq_queue is weight-raised:
629+
* Sync writes: limited to ~1/2 of async_depth (≈37% of nr_requests).
630+
* Async I/O: limited to ~1/4 of async_depth (≈18% of nr_requests).
631+
632+
- If the user writes a custom value to async_depth, BFQ will recompute
633+
these limits proportionally based on the new value.
634+
635+
For Kyber:
636+
- By default async_depth is set to 75% of nr_requests.
637+
- If the user writes a custom value to async_depth, then it override the
638+
default and directly control the limit for writes and async I/O.
639+
640+
For mq-deadline:
641+
- By default async_depth is set to nr_requests.
642+
- If the user writes a custom value to async_depth, then it override the
643+
default and directly control the limit for writes and async I/O.
644+
645+
612646
What: /sys/block/<disk>/queue/nr_zones
613647
Date: November 2018
614648
Contact: Damien Le Moal <damien.lemoal@wdc.com>

0 commit comments

Comments
 (0)