[PATCH] oom: more printk
Print the name of the task invoking the OOM killer. Could make debugging easier. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5081dde33f
commit
b72f160443
1 changed files with 3 additions and 2 deletions
|
@ -381,8 +381,9 @@ void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (printk_ratelimit()) {
|
if (printk_ratelimit()) {
|
||||||
printk("oom-killer: gfp_mask=0x%x, order=%d\n",
|
printk(KERN_WARNING "%s invoked oom-killer: "
|
||||||
gfp_mask, order);
|
"gfp_mask=0x%x, order=%d, oomkilladj=%d\n",
|
||||||
|
current->comm, gfp_mask, order, current->oomkilladj);
|
||||||
dump_stack();
|
dump_stack();
|
||||||
show_mem();
|
show_mem();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue