• Andrew Morton's avatar
    [PATCH] oom-kill: preferentially kill swapoff · cca095e0
    Andrew Morton authored
    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)
    cca095e0
oom_kill.c 6.52 KB