kernel - Add burst reads back into swap_pager
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 21 Jan 2010 19:55:14 +0000 (11:55 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 21 Jan 2010 19:55:14 +0000 (11:55 -0800)
commit5d5c583125c83ef80b172eb2cd1554f05564594e
tree90bac60e332a868befb65a441202db2fcd73acbe
parent39208dbed2ff3bc6fd28ed1673670822362473b0
kernel - Add burst reads back into swap_pager

* Burst reading from swap was disabled due to recent VM pager changes
  which changes vm_pager_getpages() from specifying multiple-pages to
  specifying just one-page.

* Add burst reading back into pretty much the only pager left (other
  then devfs_pager and phys_pager which are special cases) which
  doesn't use the buffer cache.

* The code may still be a bit unstable so it is diabled by default.
  Add a new sysctl vm.swap_burst_read (defaults to off) which can
  be used to enable burst reading from swap.
sys/vm/swap_pager.c