git: kernel - Refactor swapcache heuristic

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Mar 26 22:32:07 PDT 2019


commit b396bb03905035e2d0e69f9993b2ccc47e77ae73
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Mar 23 22:57:02 2019 -0700

    kernel - Refactor swapcache heuristic
    
    * Refactor the swapcache inactive queue heuristic to remove a
      write to a global variable that is in the critical path, and
      to improve operation.  This should reduce cpu cache ping-ponging.
    
    * Change vpgqueues.lcnt from an int to a long, change misc use
      cases in the pageout code to a long.
    
    * Use __aligned(64) to 64-byte-align vm_page_queues[].  It was
      previously only 32-byte aligned.

Summary of changes:
 sys/vm/swap_pager.h   |  1 -
 sys/vm/vm_page.c      | 17 +++++++++--------
 sys/vm/vm_page.h      | 10 +++-------
 sys/vm/vm_pageout.c   |  6 +-----
 sys/vm/vm_swapcache.c | 21 +++++++++++++--------
 5 files changed, 26 insertions(+), 29 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b396bb03905035e2d0e69f9993b2ccc47e77ae73


-- 
DragonFly BSD source repository



More information about the Commits mailing list