git: DragonFly_RELEASE_5_8 kernel - Increase size of the vm_page hash table

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Feb 28 09:16:46 PST 2020


commit d39ab8826d047c0f3ccb3d180a08f80e49a6023d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Feb 14 15:50:48 2020 -0800

    kernel - Increase size of the vm_page hash table
    
    * Increase the size of the vm_page hash table used to shortcut
      page lookups during a fault.  Improves the hit rate on machines
      with large amounts of memory.
    
    * Adjust the ticks overflow test from < 0 to < -1 in to avoid
      getting tripped up by SMP races on the global 'ticks' variable
      (which is not accessed atomically).  One cpu can conceivably
      update a hash ticks value while another cpu is doing a calculation
      based on a stale copy of ticks.
    
      Avoids premature vm_page_hash cache evictions due to this race.

Summary of changes:
 sys/vm/vm_page.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list