git: DragonFly_RELEASE_5_8 kernel - Simple cache line optimizations
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Feb 24 23:50:41 PST 2020
commit aa76b002734313da450f41a2fe6dd6f5c61ae43e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Feb 24 21:29:36 2020 -0800
kernel - Simple cache line optimizations
* Reorder struct vm_page, struct vnode, and struct vm_object a bit
to improve cache-line locality.
* Use atomic_fcmpset_*() instead of atomic_cmpset_*() in several
places to reduce the inter-cpu cache coherency load a bit.
Summary of changes:
sys/kern/kern_synch.c | 4 ++--
sys/kern/sys_pipe.c | 14 +++++++-------
sys/kern/vfs_lock.c | 18 ++++++++++++------
sys/sys/vnode.h | 14 +++++++-------
sys/vm/vm_object.c | 39 +++++++++++++++++++++------------------
sys/vm/vm_object.h | 2 +-
sys/vm/vm_page.h | 10 +++++-----
7 files changed, 55 insertions(+), 46 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aa76b002734313da450f41a2fe6dd6f5c61ae43e
--
DragonFly BSD source repository
More information about the Commits
mailing list