Re: [RFC PATCH] mm/oom_kill: dump top 5 memory consumers by RSS in OOM report

From: Ye Liu

Date: Thu Aug 13 2026 - 05:59:00 EST




在 2026/8/13 16:12, Michal Hocko 写道:
> On Tue 11-08-26 14:29:24, Ye Liu wrote:
>> From: Ye Liu <liuye@xxxxxxxxxx>
>>
>> When the OOM killer triggers, dump_tasks() prints every task's memory
>> state but in no particular order. On systems with hundreds of
>> processes, identifying the heaviest memory consumers requires manual
>> log post-processing.
>
> Yes, but why is that a problem? It should be a pretty easy script, no?

I think I've realized that problems that can be solved in user space
shouldn't burden the kernel. Thank you.

--
Thanks,
Ye Liu