lkml.org 
[lkml]   [2013]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mm: add show num_poisoned_pages when oom
Show num_poisoned_pages when oom, it is helpful to find the reason.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
---
lib/show_mem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/show_mem.c b/lib/show_mem.c
index 5847a49..1cbdcd8 100644
--- a/lib/show_mem.c
+++ b/lib/show_mem.c
@@ -46,4 +46,7 @@ void show_mem(unsigned int filter)
printk("%lu pages in pagetable cache\n",
quicklist_total_size());
#endif
+#ifdef CONFIG_MEMORY_FAILURE
+ printk("%lu pages poisoned\n", atomic_long_read(&num_poisoned_pages));
+#endif
}
--
1.7.1


\
 
 \ /
  Last update: 2013-12-09 11:21    [W:0.056 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site