commit aa76b002734313da450f41a2fe6dd6f5c61ae43e Author: Matthew Dillon <dil...@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