kernel - Make VM fault waits in low memory the same as other low memory waits
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 3 Mar 2013 01:11:19 +0000 (17:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 3 Mar 2013 01:11:19 +0000 (17:11 -0800)
commit3b47bfc4f83363f5a473ab71e6219ad84ebc6b77
treed74de825455ad3c63f4e87d7b5c7a4a9cd33c189
parent7fa8d3ba49288bc90bd4d3f654520d236f8a999b
kernel - Make VM fault waits in low memory the same as other low memory waits

* Nominal memory allocations, particularly by tmpfs, allow allocations
  down to the 'min' before waiting for memory to recover to 'target'.
  The VM fault code required memory to be at or above the 'target'
  at all times.  This led to extreme starvation because other user-accessible
  subsystems could force free memory to remain below 'target'.

* Change the VM code to use substantially the same down-to 'min' and
  recover-to 'target' parameters that other subsystems use.  This
  should reduce the excessive stalls under low memory conditions.

* Rename vm_waitpfault() to vm_wait_pfault() to conform with other
  naming schemes in the same API.
sys/vm/vm_fault.c
sys/vm/vm_page.c
sys/vm/vm_pageout.h