oom: add oom_kill_allocating_task sysctl
authorDavid Rientjes <rientjes@google.com>
Wed, 17 Oct 2007 06:25:56 +0000 (23:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:46 +0000 (08:42 -0700)
commitfe071d7e8aae5745c009c808bb8933f22a9e305a
tree757dc7c41a7b56974c383743103fb711c976c288
parentff0ceb9deb6eb017f52900b708d49cfa77bf25fb
oom: add oom_kill_allocating_task sysctl

Adds a new sysctl, 'oom_kill_allocating_task', which will automatically kill
the OOM-triggering task instead of scanning through the tasklist to find a
memory-hogging target.  This is helpful for systems with an insanely large
number of tasks where scanning the tasklist significantly degrades
performance.

Cc: Andrea Arcangeli <andrea@suse.de>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/sysctl/vm.txt
kernel/sysctl.c
mm/oom_kill.c