Thread (21 messages) 21 messages, 5 authors, 2012-02-29

Re: [PATCH] oom: add sysctl to enable slab memory dump

From: Christoph Lameter <hidden>
Date: 2012-02-22 13:55:21
Also in: lkml

On Wed, 22 Feb 2012, Rafael Aquini wrote:
quoted hunk ↗ jump to hunk
--- a/mm/slub.c
+++ b/mm/slub.c
+void oom_dump_slabs(int ratio)
+{
+
+		for_each_online_node(node) {
+			struct kmem_cache_node *n = get_node(cachep, node);
+			if (!n)
+				continue;
+
+			nr_objs += atomic_long_read(&n->total_objects);
Please use node_nr_objects() instead of directly accessing total_objects.
total_objects are only available if debugging support was compiled in.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help