kernel - Fix improper OOM process kill when no swap configured
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 29 May 2015 16:38:13 +0000 (09:38 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 29 May 2015 16:43:32 +0000 (09:43 -0700)
commit47891af8e4cae76e7fd449d144a4b4068324a313
tree5e811ada4020d6ad697e90c0f028c6fc959cda8d
parent782e40d33958d105b798e63d3cb5ef6f095df6ef
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
sys/vm/vm_pageout.c