]> git.hungrycats.org Git - linux/commit
[PATCH] don't let OOM killer kill same process repeatedly
authorAndrew Morton <akpm@digeo.com>
Tue, 25 Feb 2003 01:07:16 +0000 (17:07 -0800)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 25 Feb 2003 01:07:16 +0000 (17:07 -0800)
commit38b272f1fc8ab784041a45d6880bf2f1f626640d
tree7d61cbf93a725d34df80ce932cdb98654f1cd69a
parentd2177b1a2c724d7be467fec6ebb410b6d4f39888
[PATCH] don't let OOM killer kill same process repeatedly

Patch from Rik van Riel <riel@imladris.surriel.com>

If a process cannot exit because it's stuck in eg.  a driver, it doesn't make
sense to have the OOM killer kill it repeatedly; that could lead to a hung
system.

Instead, kill another process if the first process we tried to kill hasn't
made any move to exit within 5 seconds.  This way we have a much better
chance of recovering the system.
mm/oom_kill.c