commit d39ab8826d047c0f3ccb3d180a08f80e49a6023d
Author: Matthew Dillon <[email protected]>
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