Re: [PATCH] hung_task: Skip scan on idle systems

From: Aaron Tomlin

Date: Sat Feb 07 2026 - 16:02:01 EST


On Mon, Feb 02, 2026 at 02:55:41PM +0100, Petr Mladek wrote:
> It makes some sense. And the check of the average load is trivial
> so it might be acceptable.
>
> But I somehow doubt that it works. Have you ever seen a system with
> (avenrun[0] == 0)? IMHO, it might be pretty hard to achieve it.
> Or maybe I am too pessimistic. Or are there embedded systems which can
> only be waken by some interrupt from a sensor? Do embedded systems
> run hung task detector?
>
> By other words. Is this patch solving a theoretical scenario?
> Did you test it in practice, please?
>
> Best Regards,

Hi Petr,

You are entirely correct; this was a purely theoretical proposition.

I have not validated this against a production workload to quantify any
potential savings. Achieving a load average of exactly zero is elusive in
practice on modern systems, rendering the optimisation likely ineffective.

Please consider this patch withdrawn.


Best regards,
--
Aaron Tomlin

Attachment: signature.asc
Description: PGP signature