Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eb87756 authored by Prakash Gupta's avatar Prakash Gupta
Browse files

mm, oom: run the showmem notifier in oom



When the oom starts killing processes, it's useful to
be able to see the state of unaccounted memory in the system. Call the
showmem notifier to get other clients to dump out their state.

Change-Id: Id32ff6d6747fee7d0889447323ddce25282e93f6
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent a0d60fa8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
#include <linux/ratelimit.h>
#include <linux/kthread.h>
#include <linux/init.h>
#include <linux/show_mem_notifier.h>

#include <asm/tlb.h>
#include "internal.h"
@@ -416,8 +417,11 @@ static void dump_header(struct oom_control *oc, struct task_struct *p)
	dump_stack();
	if (oc->memcg)
		mem_cgroup_print_oom_info(oc->memcg, p);
	else
	else {
		show_mem(SHOW_MEM_FILTER_NODES);
		show_mem_call_notifiers();
	}

	if (sysctl_oom_dump_tasks)
		dump_tasks(oc->memcg, oc->nodemask);
}