DragonFlyBSD/src fd1fd05sys/sys vmmeter.h, sys/vm vm_page.c vm_pageout.c

kernel - VM rework part 20 - Fix vmmeter_neg_slop_cnt

* Fix some serious issues with the vmmeter_neg_slop_cnt calculation.
  The main problem is that this calculation was then causing
  vmstats.v_free_min to be recalculated to a much higher value
  than it should beeen calculated to, resulting in systems starting
  to page far earlier than they should.

  For example, the 128G TR started paging tmpfs data with 25GB of
  free memory, which was not intended.  The correct target for that
  amount of memory is more around 3GB.

* Remove vmmeter_neg_slop_cnt entirely and refactor the synchronization
  code to be smarter.  It will now synchronize vmstats fields whos
  adjustments exceed -1024, but only if paging would actually be
  needed in the worst-case scenario.

* This algorithm needs low-memory testing and might require more
  tuning.
DeltaFile
+38-27sys/vm/vm_page.c
+7-34sys/vm/vm_pageout.c
+3-3sys/vm/vm_page2.h
+0-2sys/sys/vmmeter.h
+1-1sys/vm/vm_meter.c
+0-1sys/vm/vm_page.h
+49-686 files

UnifiedSplitRaw