git: kernel - Rearrange struct vmmeter (requires world and kernel build)

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Oct 19 19:03:05 PDT 2023


commit 6d0742ae7aea551e633fc7147abd5de001c40346
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Oct 19 18:44:13 2023 -0700

    kernel - Rearrange struct vmmeter (requires world and kernel build)
    
    * Expand v_lock_name from 16 to 32 bytes
    
    * Add v_lock_addr field to go along with v_lock_name.  These fields
      report SMP contention.
    
    * Rearrange vmmeter_uint_end to not include v_lock_name or v_lock_addr.
    
    * Cleanup the do_vmmeter_pcpu() sysctl code.  Remove the useless
      aggregation code and just do a structural copy for the per-cpu
      gd_cnt (struct vmmeter) structure.

Summary of changes:
 sys/kern/kern_mutex.c    |  2 +-
 sys/kern/kern_spinlock.c |  4 ++--
 sys/kern/lwkt_thread.c   |  2 +-
 sys/kern/lwkt_token.c    |  2 ++
 sys/sys/indefinite.h     |  1 +
 sys/sys/indefinite2.h    |  6 +++++-
 sys/sys/vmmeter.h        |  3 ++-
 sys/vm/vm_meter.c        | 12 ++++--------
 8 files changed, 18 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6d0742ae7aea551e633fc7147abd5de001c40346


-- 
DragonFly BSD source repository


More information about the Commits mailing list