git: kernel - Make certain sysctl's unlocked

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 18 20:52:55 PDT 2017


commit 618537cfaa49437046c077c8f6699125520cbf5b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 18 20:04:43 2017 -0700

    kernel - Make certain sysctl's unlocked
    
    * Automatically flag all SYSCTL_[U]INT, [U]LONG, and [U]QUAD
      definitions CTLFLAG_NOLOCK.  These do not have to be locked.
      Will improve program startup performance a tad.
    
    * Flag a ton of other sysctls used in program startup and
      also 'ps' CTLFLAG_NOLOCK.
    
    * For kern.hostname, interlock changes using XLOCK and allow
      the sysctl to run NOLOCK, avoiding unnecessary cache line
      bouncing.

Summary of changes:
 sys/kern/kern_mib.c        | 31 ++++++++++++++++++++++--------
 sys/kern/kern_nrandom.c    |  2 +-
 sys/kern/kern_proc.c       | 48 ++++++++++++++++++++++++++++++----------------
 sys/kern/kern_sysctl.c     |  8 ++++++++
 sys/sys/sysctl.h           | 46 ++++++++++++++++++++++++++++----------------
 sys/vfs/devfs/devfs_core.c | 10 ++++++----
 sys/vm/vm_meter.c          |  5 +++--
 7 files changed, 102 insertions(+), 48 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/618537cfaa49437046c077c8f6699125520cbf5b


-- 
DragonFly BSD source repository



More information about the Commits mailing list