git: kernel - Simple cache line optimizations

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 24 23:50:30 PST 2020


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


-- 
DragonFly BSD source repository



More information about the Commits mailing list