Repository navigation
Conversation
|
Upstream branch: c03c1a1 |
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
06af0d3 to
d628b1d
Compare
435b194 to
fd67522
Compare
|
Upstream branch: 17bb0e2 |
d628b1d to
a664aca
Compare
fd67522 to
3b53a63
Compare
|
Upstream branch: 21a7f44 |
a664aca to
065a90d
Compare
3b53a63 to
5d84576
Compare
|
Upstream branch: 6b4b543 |
065a90d to
97b5b65
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
97b5b65 to
9fdc18c
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
9fdc18c to
745b57d
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
745b57d to
b103f4b
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
b103f4b to
9497643
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
9497643 to
eae4e35
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
eae4e35 to
6ccc1b9
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
6ccc1b9 to
81ef457
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
81ef457 to
5916d2b
Compare
c7f678d to
6aa6cd1
Compare
Add a test case to verify that deferred blk-mq queue dispatch
(&hctx->run_work) is steered to an online housekeeping CPU rather than
executing on an isolated CPU.
When asynchronous queue dispatch is scheduled (e.g. using an I/O
scheduler like mq-deadline or upon hardware queue backpressure), blk-mq
queues &hctx->run_work onto kblockd_workqueue. For single-queue devices
or multi-queue devices where all CPUs mapped to a hardware queue are
isolated, blk-mq falls back to unbound queue placement.
However, because kblockd_workqueue is allocated as a per-CPU workqueue
(WQ_PERCPU), unbound queue requests issued from an isolated core can
resolve to raw_smp_processor_id() and execute on the local worker pool.
In real-time and low-latency environments, running block kworkers on
isolated CPUs introduces unwanted latency jitter and risks stalling
queue dispatch if higher-priority SCHED_FIFO tasks preempt the worker.
Deferred dispatch must instead be directed to an online housekeeping
CPU.
This test:
1. Isolates an online CPU using a cgroup v2 isolated partition
(cpuset.cpus.partition = isolated).
2. Tests both single-queue (submit_queues=1) and multi-queue
(submit_queues=$(nproc)) null_blk configurations with the
mq-deadline I/O scheduler.
3. Creates an isolated tracefs instance to monitor the
workqueue_execute_start tracepoint filtered on
blk_mq_run_work_fn.
4. Submits concurrent I/O from a workload confined to the isolated
CPU.
5. Verifies that deferred queue executions occurred and that zero
kblockd worker executions ran on the isolated CPU.
Signed-off-by: Aaron Tomlin <atomlin@atomlin.com>
|
Upstream branch: b3dfbde |
5916d2b to
8362c60
Compare
Pull request for series with
subject: block/050: test deferred blk-mq queue work placement with isolated CPUs
version: 1
url: https://patchwork.kernel.org/series/1190995/