kernel - Improve pageout daemon for tmpfs write load
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Jun 2013 01:07:50 +0000 (18:07 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Jun 2013 01:07:50 +0000 (18:07 -0700)
commit79ce07d03a630ba239ae2ed5d7c96f2f86b465de
tree749568cee2c796161d241b50b6244c6736d3d8d3
parent3c54bb74e9a98e332ae20757f62d0aeb3c2267c9
kernel - Improve pageout daemon for tmpfs write load

* Rewrite vm_object_page_collect() and vm_pageout_clean() to align the
  set of pages being flushed to a swap cache stripe (~16-32 pages).

* Do a better job tracking how many pages have been cleaned by the pageout
  daemon.

* Setup an iterator and allow the inactive scan and the active scan to
  break out of their respective loops if they meet their quota early.

* Disable the swap iterator for now, it has not been shown to improve
  matters (yet).
sys/vm/swap_pager.c
sys/vm/vm_object.c
sys/vm/vm_pageout.c