Skip to content

block/050: test deferred blk-mq queue work placement with isolated CPUs - #1483

Open
ghost wants to merge 1 commit into
linus-master_basefrom
series/1190995=>linus-master
Open

ghost wants to merge 1 commit into
linus-master_basefrom
series/1190995=>linus-master

Conversation

@ghost

@ghost ghost commented Oct 22, 2026

Copy link
Copy Markdown

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/

@ghost

ghost commented Oct 22, 2026

Copy link
Copy Markdown
Author

Upstream branch: c03c1a1
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost

ghost commented Oct 22, 2026

Copy link
Copy Markdown
Author

Upstream branch: 7be4bc5
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 06af0d3 to d628b1d Compare October 22, 2026 07:33
@ghost
ghost force-pushed the linus-master_base branch from 435b194 to fd67522 Compare October 24, 2026 03:36
@ghost

ghost commented Oct 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: 17bb0e2
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from d628b1d to a664aca Compare October 24, 2026 03:49
@ghost
ghost force-pushed the linus-master_base branch from fd67522 to 3b53a63 Compare October 26, 2026 01:52
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 21a7f44
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from a664aca to 065a90d Compare October 26, 2026 02:12
@ghost
ghost force-pushed the linus-master_base branch from 3b53a63 to 5d84576 Compare October 26, 2026 07:01
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6b4b543
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 065a90d to 97b5b65 Compare October 26, 2026 07:18
@ghost
ghost force-pushed the linus-master_base branch from 5d84576 to 6582ed2 Compare October 26, 2026 18:11
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: fb2c3f4
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 97b5b65 to 9fdc18c Compare October 26, 2026 18:22
@ghost
ghost force-pushed the linus-master_base branch from 6582ed2 to b3a1abc Compare October 26, 2026 23:55
@ghost

ghost commented Oct 27, 2026

Copy link
Copy Markdown
Author

Upstream branch: d135ab4
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 9fdc18c to 745b57d Compare October 27, 2026 00:07
@ghost
ghost force-pushed the linus-master_base branch from b3a1abc to 712496f Compare October 28, 2026 23:34
@ghost

ghost commented Oct 28, 2026

Copy link
Copy Markdown
Author

Upstream branch: c339f40
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 745b57d to b103f4b Compare October 28, 2026 23:45
@ghost
ghost force-pushed the linus-master_base branch from 712496f to a186880 Compare October 30, 2026 13:52
@ghost

ghost commented Oct 30, 2026

Copy link
Copy Markdown
Author

Upstream branch: d89e1d1
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from b103f4b to 9497643 Compare October 30, 2026 14:12
@ghost
ghost force-pushed the linus-master_base branch from a186880 to 46206a3 Compare November 2, 2026 17:14
@ghost

ghost commented Nov 2, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6628e7d
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 9497643 to eae4e35 Compare November 2, 2026 17:51
@ghost
ghost force-pushed the linus-master_base branch from 46206a3 to 220bd96 Compare November 3, 2026 23:41
@ghost

ghost commented Nov 4, 2026

Copy link
Copy Markdown
Author

Upstream branch: 05441d6
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from eae4e35 to 6ccc1b9 Compare November 4, 2026 00:05
@ghost
ghost force-pushed the linus-master_base branch from 220bd96 to 6c4625e Compare November 6, 2026 08:02
@ghost

ghost commented Nov 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: f66469d
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 6ccc1b9 to 81ef457 Compare November 6, 2026 08:45
@ghost
ghost force-pushed the linus-master_base branch from 6c4625e to c7f678d Compare November 7, 2026 03:08
@ghost

ghost commented Nov 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: d487237
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 81ef457 to 5916d2b Compare November 7, 2026 03:42
@ghost
ghost force-pushed the linus-master_base branch from c7f678d to 6aa6cd1 Compare November 10, 2026 07:53
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>
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: b3dfbde
series: https://patchwork.kernel.org/series/1190995/
version: 1

@ghost
ghost force-pushed the series/1190995=>linus-master branch from 5916d2b to 8362c60 Compare November 10, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant