linux/arch/metag/mm
Johannes Weiner 609838cfed mm: invoke oom-killer from remaining unconverted page fault handlers
A few remaining architectures directly kill the page faulting task in an
out of memory situation.  This is usually not a good idea since that
task might not even use a significant amount of memory and so may not be
the optimal victim to resolve the situation.

Since 2.6.29's 1c0fe6e ("mm: invoke oom-killer from page fault") there
is a hook that architecture page fault handlers are supposed to call to
invoke the OOM killer and let it pick the right task to kill.  Convert
the remaining architectures over to this hook.

To have the previous behavior of simply taking out the faulting task the
vm.oom_kill_allocating_task sysctl can be set to 1.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>   [arch/arc bits]
Cc: James Hogan <james.hogan@imgtec.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-07-09 10:33:20 -07:00
..
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2013-05-02 10:16:16 -07:00
Makefile metag: Build infrastructure 2013-03-02 20:09:54 +00:00
cache.c metag/mm/cache: Restrict scope for metag_lnkget_probe 2013-06-13 12:55:28 +01:00
extable.c metag: Memory management 2013-03-02 20:09:19 +00:00
fault.c mm: invoke oom-killer from remaining unconverted page fault handlers 2013-07-09 10:33:20 -07:00
highmem.c metag: Highmem support 2013-03-02 20:09:20 +00:00
hugetlbpage.c metag: hugetlb: convert to vm_unmapped_area() 2013-03-02 20:11:13 +00:00
init.c mm/metag: prepare for killing free_all_bootmem_node() 2013-07-03 16:07:38 -07:00
ioremap.c metag: Memory handling 2013-03-02 20:09:19 +00:00
l2cache.c
maccess.c metag: Memory handling 2013-03-02 20:09:19 +00:00
mmu-meta1.c metag: Memory management 2013-03-02 20:09:19 +00:00
mmu-meta2.c metag: Memory management 2013-03-02 20:09:19 +00:00
numa.c metag: TCM support 2013-03-02 20:09:21 +00:00