diff options
author | jhb <jhb@FreeBSD.org> | 2004-06-29 02:30:12 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-06-29 02:30:12 +0000 |
commit | 6502f84a50fcc2d8c900075cb5c32b5f27b6412d (patch) | |
tree | 3244993b69f32cb332dc725fe0d3875355d19b32 /sys/conf | |
parent | 348466ddef9897fd09915a421127252c9507072e (diff) | |
download | FreeBSD-src-6502f84a50fcc2d8c900075cb5c32b5f27b6412d.zip FreeBSD-src-6502f84a50fcc2d8c900075cb5c32b5f27b6412d.tar.gz |
Add two new kernel options to allow rudimentary profiling of the internal
hash tables used in the sleep queue and turnstile code. Each option adds
a sysctl tree under debug containing the maximum depth of any bucket in
the hash table as well as a separate node for each bucket (or chain)
containing the current depth and maximum depth for that bucket.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/NOTES | 8 | ||||
-rw-r--r-- | sys/conf/options | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 50a1143..d30e1be 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -181,6 +181,10 @@ options MUTEX_NOINLINE # SMP Debugging Options: # # MUTEX_DEBUG enables various extra assertions in the mutex code. +# SLEEPQUEUE_PROFILING enables rudimentary profiling of the hash table +# used to hold active sleep queues. +# TURNSTILE_PROFILING enables rudimentary profiling of the hash table +# used to hold active lock queues. # WITNESS enables the witness code which detects deadlocks and cycles # during locking operations. # WITNESS_DDB causes the witness code to drop into the kernel debugger if @@ -196,6 +200,10 @@ options WITNESS_SKIPSPIN # MUTEX_PROFILING(9) for details. options MUTEX_PROFILING +# Profiling for internal hash tables. +options SLEEPQUEUE_PROFILING +options TURNSTILE_PROFILING + ##################################################################### # COMPATIBILITY OPTIONS diff --git a/sys/conf/options b/sys/conf/options index 7cd8918..1c6c146 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -110,6 +110,7 @@ QUOTA SCHED_4BSD opt_sched.h SCHED_ULE opt_sched.h SHOW_BUSYBUFS +SLEEPQUEUE_PROFILING SPX_HACK SUIDDIR opt_suiddir.h MSGMNB opt_sysvipc.h @@ -134,6 +135,7 @@ SYSVMSG opt_sysvipc.h SYSVSEM opt_sysvipc.h SYSVSHM opt_sysvipc.h SW_WATCHDOG opt_watchdog.h +TURNSTILE_PROFILING TTYHOG opt_tty.h VFS_AIO WLCACHE opt_wavelan.h |