From: Nick Piggin Print the name of the task invoking the OOM killer. Could make debugging easier. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton --- mm/oom_kill.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN mm/oom_kill.c~oom-more-printk mm/oom_kill.c --- a/mm/oom_kill.c~oom-more-printk +++ a/mm/oom_kill.c @@ -381,8 +381,9 @@ void out_of_memory(struct zonelist *zone return; if (printk_ratelimit()) { - printk("oom-killer: gfp_mask=0x%x, order=%d\n", - gfp_mask, order); + printk(KERN_WARNING "%s invoked oom-killer: " + "gfp_mask=0x%x, order=%d, oomkilladj=%d\n", + current->comm, gfp_mask, order, current->oomkilladj); dump_stack(); show_mem(); } _