Re: [PATCH] hung_task: Add per-round stack trace deduplication

From: Google

Date: Wed Jun 17 2026 - 21:00:01 EST


On Wed, 17 Jun 2026 14:48:41 -0400
Aaron Tomlin <atomlin@xxxxxxxxxxx> wrote:

> Currently, when multiple tasks hang in the exact same location (e.g.,
> such as severe contention for a mutex), khungtaskd indiscriminately
> reports every single instance. This wastes ring buffer space with
> identical stack traces up to the defined warning limit (i.e.,
> kernel.hung_task_warnings), obscuring the root cause without providing
> any additional diagnostic value.

Good work!
And I would like to see how many tasks are stacked on the same
place too. Can we just skip sched_show_task() instead?

Thank you,

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>