Skip to contentSkip to conversation

+ lib-show_memc-show-num_poisoned_pages-when-oom.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Dec 10, 2013 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + lib-show_memc-show-num_poisoned_pages-when-oom.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 10 Dec 2013 13:42:26 -0800

The patch titled
Subject: lib/show_mem.c: show num_poisoned_pages when oom
has been added to the -mm tree. Its filename is
lib-show_memc-show-num_poisoned_pages-when-oom.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-show_memc-show-num_poisoned_pages-when-oom.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-show_memc-show-num_poisoned_pages-when-oom.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Xishi Qiu <[email protected]>
Subject: lib/show_mem.c: show num_poisoned_pages when oom

Show num_poisoned_pages when oom, it is a little helpful to find the reason. Also it will be emitted anytime show_mem() is called.

---

 lib/show_mem.c |    3 +++
 1 file changed, 3 insertions(+)
lib/show_mem.c renamed from lib/show_mem.c~lib-show_memc-show-num_poisoned_pages-when-oom +3 -0
diff -puN lib/show_mem.c~lib-show_memc-show-num_poisoned_pages-when-oom lib/show_mem.c
@@ -43,4 +43,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 hwpoisoned\n", atomic_long_read(&num_poisoned_pages));
+#endif
 }

_

Patches currently in -mm which might be from [email protected] are

lib-show_memc-show-num_poisoned_pages-when-oom.patch linux-next.patch