git: kernel - Increase size of the vm_page hash table

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Feb 14 16:12:12 PST 2020


commit fb9a513650cb43ec79fc3e0320c27fa94532f4d5
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/fb9a513650cb43ec79fc3e0320c27fa94532f4d5


-- 
DragonFly BSD source repository


More information about the Commits mailing list