]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
oom: dump stack and VM state when oom killer panics
authorDavid Rientjes <rientjes@google.com>
Tue, 15 Dec 2009 01:57:47 +0000 (17:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:10 +0000 (08:53 -0800)
commit1b604d75bbb6e28628c5a95a433432973c33d581
treef5022972180a0dab66744eb6278ea57b869447e4
parent5ce45962b26ae867e98e60177f62f9695b49a936
oom: dump stack and VM state when oom killer panics

The oom killer header, including information such as the allocation order
and gfp mask, current's cpuset and memory controller, call trace, and VM
state information is currently only shown when the oom killer has selected
a task to kill.

This information is omitted, however, when the oom killer panics either
because of panic_on_oom sysctl settings or when no killable task was
found.  It is still relevant to know crucial pieces of information such as
the allocation order and VM state when diagnosing such issues, especially
at boot.

This patch displays the oom killer header whenever it panics so that bug
reports can include pertinent information to debug the issue, if possible.

Signed-off-by: David Rientjes <rientjes@google.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c