kernel - Add vm.swapcache.maxscan
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 26 Dec 2011 20:01:49 +0000 (12:01 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 26 Dec 2011 20:01:49 +0000 (12:01 -0800)
commit0bf8126181b006215fc295c8ba2700bb6c03b809
tree2ce85470b7907d10de5c3ec166adecd5293b3a5b
parent50e4012a4b55e1efc595db0db397b4365f08b640
kernel - Add vm.swapcache.maxscan

* Add vm.swapcache.maxscan as a separate counter from vm.swapcache.maxlaunder.

* Defaults to 4x maxlaunder.

* Should hopefully fix another cpu hogging issue that was noticed on
  avalon when most VM pages wind up being cached in the swapcache
  but still get cycled in the PQ_INACTIVE VM page queue due to apache
  activity.
sys/vm/vm_swapcache.c