mm: invoke oom-killer from page fault
Rather than have the pagefault handler kill a process directly if it gets a VM_FAULT_OOM, have it call into the OOM killer. With increasingly sophisticated oom behaviour (cpusets, memory cgroups, oom killing throttling, oom priority adjustment or selective disabling, panic on oom, etc), it's silly to unconditionally kill the faulting process at page fault time. Create a hook for pagefault oom path to call into instead. Only converted x86 and uml so far. [akpm@linux-foundation.org: make __out_of_memory() static] [akpm@linux-foundation.org: fix comment] Signed-off-by:Nick Piggin <npiggin@suse.de> Cc: Jeff Dike <jdike@addtoit.com> Acked-by:
Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Loading
-
mentioned in commit c7c1e384
-
mentioned in commit 59fa4392
-
mentioned in commit 21e1c936
-
mentioned in commit adbf6e69
-
mentioned in commit 0c3b96e4
-
mentioned in commit 1cb3d8e2
-
mentioned in commit 53e30d02
-
mentioned in commit f9c497c4
-
mentioned in commit 68db30ce
-
mentioned in commit f76f5d71
-
mentioned in commit c421b08e
-
mentioned in commit 3648bdf7
-
mentioned in commit 67a8a20f
Please register or sign in to comment