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

Commit cd763806 authored by Vinayak Menon's avatar Vinayak Menon
Browse files

mm: Kconfig: add HAVE_LOW_MEMORY_KILLER



When a low memory killer is available either as a
user/kernel space module, we do not prefer the OOM
killer to trigger early. Add a config to avoid
premature OOMs in the presence of such low memory
killers.

Change-Id: I27f51e347aa7ba559e54753e9962e5ebc67c9ce7
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent fb5728db
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -799,3 +799,11 @@ config SPECULATIVE_PAGE_FAULT
	 detected or because underlying PMD or PTE tables are not yet
	 allocating, it is failing its processing and a classic page fault
	 is then tried.

config HAVE_LOW_MEMORY_KILLER
	bool "Have user/kernel space low memory killer"
	default n
	help
	  Say 'y' if you have a user/kernel low memory killer and thus you
	  want page allocator to provide sufficient time before it triggers
	  Out of Memory killer.