summaryrefslogtreecommitdiffstats
path: root/sys/conf/options
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-02-27 06:42:05 +0000
committerkmacy <kmacy@FreeBSD.org>2007-02-27 06:42:05 +0000
commitb7672bad26dbe5a50937a2e258fe957b1bc19a8d (patch)
treec7228dd81a9d5cf5855323c889da39c667a4dd5a /sys/conf/options
parent128ac1d5958eb05b5b0c08882c80a3f90ef76d1b (diff)
downloadFreeBSD-src-b7672bad26dbe5a50937a2e258fe957b1bc19a8d.zip
FreeBSD-src-b7672bad26dbe5a50937a2e258fe957b1bc19a8d.tar.gz
Further improvements to LOCK_PROFILING:
- Fix missing initialization in kern_rwlock.c causing bogus times to be collected - Move updates to the lock hash to after the lock is released for spin mutexes, sleep mutexes, and sx locks - Add new kernel build option LOCK_PROFILE_FAST - only update lock profiling statistics when an acquisition is contended. This reduces the overhead of LOCK_PROFILING to increasing system time by 20%-25% which on "make -j8 kernel-toolchain" on a dual woodcrest is unmeasurable in terms of wall-clock time. Contrast this to enabling lock profiling without LOCK_PROFILE_FAST and I see a 5x-6x slowdown in wall-clock time.
Diffstat (limited to 'sys/conf/options')
-rw-r--r--sys/conf/options1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options
index 6d5e593..ebed301 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -548,6 +548,7 @@ MCLSHIFT opt_global.h
MUTEX_DEBUG opt_global.h
MUTEX_NOINLINE opt_global.h
LOCK_PROFILING opt_global.h
+LOCK_PROFILING_FAST opt_global.h
MSIZE opt_global.h
REGRESSION opt_global.h
RESTARTABLE_PANICS opt_global.h
OpenPOWER on IntegriCloud