public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sched_ext: Improve watchdog stall diagnostics
@ 2026-04-08  3:11 Changwoo Min
  2026-04-08  3:11 ` [PATCH 1/2] sched_ext: Extract scx_dump_cpu() from scx_dump_state() Changwoo Min
  2026-04-08  3:11 ` [PATCH 2/2] sched_ext: Dump the stall CPU first in watchdog exit Changwoo Min
  0 siblings, 2 replies; 7+ messages in thread
From: Changwoo Min @ 2026-04-08  3:11 UTC (permalink / raw)
  To: tj, void, arighi, changwoo; +Cc: kernel-dev, sched-ext, linux-kernel

When a watchdog timeout fires on a system with many CPUs, the per-CPU
state dump in the exit info can get truncated. If the stall CPU happens
to be in the middle or end of the CPU list, its state may never appear
in the output, making it difficult to diagnose the hang.

This series addresses that by always dumping the stall CPU first.

Patch 1 is a preparatory refactor that extracts the per-CPU dump logic
into a scx_dump_cpu() helper, making patch 2 straightforward.

Patch 2 adds a stall_cpu field to scx_exit_info, threads it through
the exit path, and reorders the dump loop to emit the stall CPU before
all others.

Changwoo Min (2):
  sched_ext: Extract scx_dump_cpu() from scx_dump_state()
  sched_ext: Dump the stall CPU first in watchdog exit

 kernel/sched/ext.c          | 202 +++++++++++++++++++-----------------
 kernel/sched/ext_internal.h |   3 +
 2 files changed, 112 insertions(+), 93 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-04-09  6:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08  3:11 [PATCH 0/2] sched_ext: Improve watchdog stall diagnostics Changwoo Min
2026-04-08  3:11 ` [PATCH 1/2] sched_ext: Extract scx_dump_cpu() from scx_dump_state() Changwoo Min
2026-04-08  3:11 ` [PATCH 2/2] sched_ext: Dump the stall CPU first in watchdog exit Changwoo Min
2026-04-09  1:19   ` Tejun Heo
2026-04-09  5:52     ` Andrea Righi
2026-04-09  6:28       ` Tejun Heo
2026-04-09  5:44   ` Andrea Righi

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