Repository navigation
Conversation
|
Upstream branch: 58161ea |
3d027d5 to
90ea7e4
Compare
|
Upstream branch: c03c1a1 |
fe833a1 to
7af18af
Compare
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
7af18af to
4264fd6
Compare
435b194 to
fd67522
Compare
|
Upstream branch: 17bb0e2 |
4264fd6 to
bf65a07
Compare
fd67522 to
3b53a63
Compare
|
Upstream branch: 21a7f44 |
bf65a07 to
fe72d60
Compare
3b53a63 to
5d84576
Compare
|
Upstream branch: 6b4b543 |
fe72d60 to
ee6787c
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
ee6787c to
726a1fc
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
726a1fc to
08a16ac
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
08a16ac to
85e5cef
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
85e5cef to
a53333f
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
a53333f to
969eb90
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
969eb90 to
2f08cce
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
2f08cce to
79a228f
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
79a228f to
7b61fd6
Compare
c7f678d to
6aa6cd1
Compare
On fast devices such as NVMe SSDs with spare capacity, scheduler insertion,
sorting and merging may add CPU overhead with little benefit. Allowing new
requests to reach the driver directly can reduce submission latency and
improve bandwidth when this overhead limits performance.
Add a skip_request elevator callback to support direct dispatch for
unplugged submissions and plug flushes outside the scheduling path.
Implement it in mq-deadline with request accounting preserved across
reinsertion and retries.
Expose a dispatch_direct tunable, enabled by default. Directly dispatched
requests may bypass queued requests, including higher priority or expired
requests. Setting dispatch_direct to 0 restores normal scheduler insertion.
Test sequential writes on an NVMe SSD with fio, comparing none, unmodified
mq-deadline, and mq-deadline with this patch and dispatch_direct enabled.
test A:
fio -name=jobs1-4k -direct=1 -iodepth=16 -numjobs=1 -filename=fiolog.txt
-ioengine=libaio -blocksize=4k -size=10GB -rw=write -runtime=120
-time_based -ramp_time=30
test B:
fio -name=jobs10-4k -direct=1 -iodepth=16 -numjobs=10 -filename=fiolog.txt
-ioengine=libaio -blocksize=4k -size=10GB -rw=write -runtime=120
-time_based -ramp_time=30
test C:
fio -name=jobs1-32k -direct=1 -iodepth=16 -numjobs=1 -filename=fiolog.txt
-ioengine=libaio -blocksize=32k -size=10GB -rw=write -runtime=120
-time_based -ramp_time=30
Bandwidth in MiB/s:
Workload none mq-deadline my-patch
jobs1-4k 1209 1047 1174
jobs10-4k 2458 946 2349
jobs1-32k 2568 2565 2562
Direct dispatch improves bandwidth over unmodified mq-deadline by 12.1%
with one job and 148.3% with multiple jobs for the 4 KiB workloads,
reaching 97.1% and 95.6% of the bandwidth achieved with none, respectively.
All three configurations achieve the same maximum bandwidth.
Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn>
|
Upstream branch: b3dfbde |
7b61fd6 to
e24d57f
Compare
Pull request for series with
subject: blk-mq: add direct dispatch support for mq-deadline
version: 1
url: https://patchwork.kernel.org/series/1187912/