diff options
author | Janet Morgan <janetmor@us.ibm.com> | 2005-06-21 17:14:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 18:46:17 -0700 |
commit | 578c2fd6a7f378434655e5c480e23152a3994404 (patch) | |
tree | 3a6408c416e3825cd17e33ac776425a52b743adc /mm/page_alloc.c | |
parent | c2f29ea111e3344ed48257c2a142c3db514e1529 (diff) | |
download | kernel_samsung_tuna-578c2fd6a7f378434655e5c480e23152a3994404.zip kernel_samsung_tuna-578c2fd6a7f378434655e5c480e23152a3994404.tar.gz kernel_samsung_tuna-578c2fd6a7f378434655e5c480e23152a3994404.tar.bz2 |
[PATCH] add OOM debug
This patch provides more debug info when the system is OOM. It displays
memory stats (basically sysrq-m info) from __alloc_pages() when page
allocation fails and during OOM kill.
Thanks to Dave Jones for coming up with the idea.
Signed-off-by: Janet Morgan <janetmor@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 10446a6..be05d17 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -935,6 +935,7 @@ nopage: " order:%d, mode:0x%x\n", p->comm, order, gfp_mask); dump_stack(); + show_mem(); } return NULL; got_pg: |