Re: [PATCH] sched/numa: Fix NULL pointer access to mm_struct durng task swap
From: Peter Zijlstra
Date: Fri Jul 04 2025 - 05:11:26 EST
On Thu, Jul 03, 2025 at 04:35:42PM -0700, Libo Chen wrote:
> Probably not as bad as you may think. Systems with one NUMA node or NUMA
> balancing disabled (which will be most of the machines) won't be affected
> by this at all , task_numa_migrate() is also ratelimited so it doesn't get
> touched nearly as often as most of other scheduler events.
>
> If this is on a really hot and critical path that most of us have to take,
> such as wakeup, I won't argue with you at all. I don't want to be too
> persistent here, it's fine to use eBPF with the existing tracepoints. I
> just think this is convenient and doesn't really hurt those who don't care
> about these numbers.
Its not about this one path per-se, more a general rant on the 'merit'
of endlessly adding statistics and accounting to code.