git: kernel - Fix improper OOM process kill when no swap configured

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 29 09:43:35 PDT 2015


commit 47891af8e4cae76e7fd449d144a4b4068324a313
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri May 29 09:38:13 2015 -0700

    kernel - Fix improper OOM process kill when no swap configured
    
    * The avail_shortage calculation used by the pageout demon to track
      whether enough pages could be retired had a degenerate case which
      caused the demon to improperly believe that the machine was out of
      memory when it wasn't.
    
    * Generally would only happen if no swap was configured.
    
    Reported-by: joris

Summary of changes:
 sys/vm/vm_pageout.c | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/47891af8e4cae76e7fd449d144a4b4068324a313


-- 
DragonFly BSD source repository



More information about the Commits mailing list