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

Commit a77bea39 authored by Laura Abbott's avatar Laura Abbott Committed by Patrick Daly
Browse files

lowmemorykiller: Run the showmem notifier when killing



When the lowmemory killer starts killing adj 0 tasks, it's useful to
be able to see the state of other memory in the system. Call the
showmem notifier to get other clients to dump out their state.

Change-Id: Ie3b1d47149f0108b42b7961fd47a8cc5efe2c590
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 48d62f91
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@

#define CREATE_TRACE_POINTS
#include <trace/events/almk.h>
#include <linux/show_mem_notifier.h>

#ifdef CONFIG_HIGHMEM
#define _ZONE ZONE_HIGHMEM
@@ -622,6 +623,7 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)

		if (lowmem_debug_level >= 2 && selected_oom_score_adj == 0) {
			show_mem(SHOW_MEM_FILTER_NODES, NULL);
			show_mem_call_notifiers();
			dump_tasks(NULL, NULL);
		}