kernel - Fix longstanding VM long-duration stall issues (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 30 Oct 2010 05:46:29 +0000 (22:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 30 Oct 2010 05:46:29 +0000 (22:46 -0700)
commitcd3c66bd0938d6a60e0e83819db8e0f498943572
tree3849fff209ea5a9ab00c2ee05ec7220308a42e93
parent1bfac2629fc773dc7093d8aa319fe5a3c75cd7a1
kernel - Fix longstanding VM long-duration stall issues (2)

* Refactor the pageout daemon's hysteresis, in particular the
  free page queue had no real hysteressis and could cause excessive
  pagedaemon wakeups.

  Use a calculation that maintains a free page queue about half the
  size of the minimum cache queue, giving us pretty good pipelining
  when a system is under constant memory pressure.

* Add a sysctl for monitoring ppwakeups (wakeups of processes waiting
  for memory).
sys/sys/vmmeter.h
sys/vm/vm_meter.c
sys/vm/vm_page.c
sys/vm/vm_page2.h
sys/vm/vm_pageout.c