On Mon, May 05, 2025 at 11:03:10PM +0800, "Chen, Yu C" <yu.c.chen@xxxxxxxxx> wrote: > According to this address, > 4c 8b af 50 09 00 00 mov 0x950(%rdi),%r13 <--- r13 = p->mm; > 49 8b bd 98 04 00 00 mov 0x498(%r13),%rdi <--- p->mm->owner > It seems that this task to be swapped has NULL mm_struct. So it's likely a kernel thread. Does it make sense to NUMA balance those? (I naïvely think it doesn't, please correct me.) ... > static void __migrate_swap_task(struct task_struct *p, int cpu) > { > __schedstat_inc(p->stats.numa_task_swapped); > - count_memcg_event_mm(p->mm, NUMA_TASK_SWAP); > + if (p->mm) > + count_memcg_event_mm(p->mm, NUMA_TASK_SWAP); ... proper fix should likely guard this earlier, like the guard in task_numa_fault() but for the other swapped task. Michal
Attachment:
signature.asc
Description: PGP signature