public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET 0/3] Avoid unnecessary io-wq worker creation
@ 2025-05-23 12:15 Jens Axboe
  2025-05-23 12:15 ` [PATCH 1/3] io_uring/io-wq: move hash helpers to the top Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jens Axboe @ 2025-05-23 12:15 UTC (permalink / raw)
  To: io-uring; +Cc: changfengnan, lidiangang

Hi,

Based on a report and RFC posted here:

https://lore.kernel.org/io-uring/20250522090909.73212-1-changfengnan@bytedance.com/

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(-)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-23 12:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23 12:15 [PATCHSET 0/3] Avoid unnecessary io-wq worker creation Jens Axboe
2025-05-23 12:15 ` [PATCH 1/3] io_uring/io-wq: move hash helpers to the top Jens Axboe
2025-05-23 12:15 ` [PATCH 2/3] io_uring/io-wq: ignore non-busy worker going to sleep Jens Axboe
2025-05-23 12:15 ` [PATCH 3/3] io_uring/io-wq: only create a new worker if it can make progress Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox