]> git.hungrycats.org Git - linux/commit
[PATCH] oom-kill: preferentially kill swapoff
authorAndrew Morton <akpm@digeo.com>
Sun, 20 Apr 2003 07:28:52 +0000 (00:28 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 20 Apr 2003 07:28:52 +0000 (00:28 -0700)
commitcca095e03401e4a1c6cd1a747d8e278986b9d6a4
tree2b0b8b3acd2dc8cca09ec693eea3c2e354a2c78f
parent6bf11a468c63a09911e5c6bb02ad980684923c81
[PATCH] oom-kill: preferentially kill swapoff

From: Hugh Dickins <hugh@veritas.com>

The current behaviour is that once swapoff has filled memory, other tasks get
OOMkilled one by one until swapoff completes, or more likely hangs.  It is
better that swapoff be the first choice for OOMkill.

The patch changes the oom-killer so that it will kill off any
currently-running swapoff instance before killing any other task.

(Bit kludgy, couldn't think of a better way)
include/linux/sched.h
mm/oom_kill.c
mm/swapfile.c