Skip to content

Avoid unnecessary io-wq worker creation

Jens Axboe io-uring 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring/io-wq: move hash helpers to the topio_uring/io-wq.c+10 -100 replies
2/3io_uring/io-wq: ignore non-busy worker going to sleepio_uring/io-wq.c+2 -00 replies
3/3io_uring/io-wq: only create a new worker if it can make progressio_uring/io-wq.c+28 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/3] Avoid unnecessary io-wq worker creation

Hi,

Based on a report and RFC posted here:

https://lore.kernel.org/io-uring/[email protected]/

this attempts to avoid spurious and pointless io-wq worker creation. Patch 2 eliminates io-wq worker creation if the worker is currently idle, and patch 3 attempts to eliminate worker creation if it's blocking on a hashed item and the next work item is also hashed to the same bucket.

 io_uring/io-wq.c | 50 ++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 40 insertions(+), 10 deletions(-)
Signature · 1 line
Jens Axboe