Re: [PATCH] workqueue: add workqueue.mayday_initial_timeout
From: Matthew Wilcox
Date: Mon Nov 10 2025 - 21:55:31 EST
On Tue, Nov 11, 2025 at 10:52:44AM +0800, ying chen wrote:
> If creating a new worker takes longer than MAYDAY_INITIAL_TIMEOUT,
> the rescuer thread will be woken up to process works scheduled on
> @pool, resulting in sequential execution of all works. This may lead
> to a situation where one work blocks others. However, the initial
> rescue timeout defaults to 10 milliseconds, which can easily be
> triggered in heavy-load environments.
Then we should tune it automatically, not blame the admin for not tuning
this parameter.