git: kernel - Add minor VM shortcuts
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Mar 4 09:26:39 PST 2020
commit 3a8f824874846b019083914ed34f2671461f2498
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Mar 4 09:17:47 2020 -0800
kernel - Add minor VM shortcuts
* Adjust vm_page_hash_elm heuristic to save the full pindex field
instead of just the lower 32 bits.
* Refactor the hash table and hash lookup to index directly to the
potential hit rather than masking to the SET size (~3). This
improves our chances of finding the requested page without having
to iterate.
The hash table is now N + SET sized and the SET iteration runs
from the potential direct-hit point forwards.
* Minor __predict* code optimizations.
* Shortcut vm_page_alloc() when PG_MAPPED|PG_WRITEABLE are clear
to avoid unnecessary code paths.
Summary of changes:
sys/vm/vm_page.c | 64 +++++++++++++++++++++++++++++++++++---------------------
1 file changed, 40 insertions(+), 24 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3a8f824874846b019083914ed34f2671461f2498
--
DragonFly BSD source repository
More information about the Commits
mailing list