trace_block_plug(9)
π trace_block_plug(9) β a Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual today, and this page is short but it eats. no cap. let's get into it π«Ά
β¨ NAME β¨
trace_block_plug β literally just keeping operation requests chillin' in the request queue π
πΈ SYNOPSIS πΈ
void trace_block_plug (struct request_queue *q );
yeah that's the whole thing. one function, one arg, void return. minimalist icon behavior π
π¦ ARGUMENTS π¦
qβ the request queue you're plugging. that's it, that's the argument, she's the request queue to plug π
π₯ DESCRIPTION π₯
so what does it do? it plugs the request queue q. periodt.
and by "plug" we mean: do not allow block operation requests to be sent to the device driver. nope. not today. instead, requests get accumulated in the queue so the throughput performance of the block device goes up πβ¨ it's giving "let it marinate" and honestly? iconic.
ngl this one is a one-trick pony but the trick is genuinely good β hold the requests, let them pile up, then let the throughput glow-up happen π
π SEE ALSO π
the whole friend group π and also, heads up, the kernel file lives at ./include/trace/events/block.h β here's everybody:
trace_block_touch_buffer(9)trace_block_dirty_buffer(9)trace_block_rq_requeue(9)trace_block_rq_complete(9)trace_block_rq_error(9)trace_block_rq_tag_wait(9)trace_block_rq_insert(9)trace_block_rq_issue(9)trace_block_rq_merge(9)trace_block_io_start(9)trace_block_io_done(9)trace_block_bio_complete(9)trace_block_bio_backmerge(9)trace_block_bio_frontmerge(9)trace_block_bio_queue(9)trace_block_getrq(9)trace_blk_zone_append_update_request_bio(9)trace_block_unplug(9)trace_block_split(9)trace_block_bio_remap(9)trace_block_rq_remap(9)trace_blkdev_zone_mgmt(9)
like I said. the whole group chat π
and that's the page, bestie!! π this one came from ./include/trace/events and it's dated October 2026 β so yeah, mark your calendar, trace_block_plug(9) is forever πβ¨ mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms