kernel - Remove most global atomic ops for VM page statistics
commit5ba14d44233fee495be5ec0d814c498df17f86ec
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 Jan 2017 22:06:37 +0000 (8 14:06 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 Jan 2017 22:06:37 +0000 (8 14:06 -0800)
treef743bbfc911da23ed50d0f0b0fa2f03a10c99cab
parenta3946564b990b2bc6b8c0644221107ab313412be
kernel - Remove most global atomic ops for VM page statistics

* Use a pcpu globaldata->gd_vmstats to update page statistics.

* Hardclock rolls the individual stats into the global vmstats structure.

* Force-roll any pcpu stat that goes below -10, to ensure that the low-memory
  handling algorithms still work properly.
sys/kern/kern_clock.c
sys/sys/globaldata.h
sys/sys/vmmeter.h
sys/vm/vm_meter.c
sys/vm/vm_page.c
sys/vm/vm_page.h
sys/vm/vm_pageout.c