git: kernel - Remove most global atomic ops for VM page statistics

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jan 8 14:08:15 PST 2017


commit 5ba14d44233fee495be5ec0d814c498df17f86ec
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Jan 8 14:06:37 2017 -0800

    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.

Summary of changes:
 sys/kern/kern_clock.c |  5 +++++
 sys/sys/globaldata.h  | 18 ++++++++++------
 sys/sys/vmmeter.h     | 52 +++++++++++++++++++++++++++++----------------
 sys/vm/vm_meter.c     | 59 ++++++++++++++++++++++++++++++++++++++-------------
 sys/vm/vm_page.c      | 54 +++++++++++++++++++++++++++++++++++-----------
 sys/vm/vm_page.h      |  4 ++--
 sys/vm/vm_pageout.c   |  3 +++
 7 files changed, 141 insertions(+), 54 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ba14d44233fee495be5ec0d814c498df17f86ec


-- 
DragonFly BSD source repository


More information about the Commits mailing list