From owner-cvs-src@FreeBSD.ORG Tue Feb 27 06:42:05 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7DDAD16A401; Tue, 27 Feb 2007 06:42:05 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 70E6113C48D; Tue, 27 Feb 2007 06:42:05 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l1R6g5ws027829; Tue, 27 Feb 2007 06:42:05 GMT (envelope-from kmacy@repoman.freebsd.org) Received: (from kmacy@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l1R6g5Do027828; Tue, 27 Feb 2007 06:42:05 GMT (envelope-from kmacy) Message-Id: <200702270642.l1R6g5Do027828@repoman.freebsd.org> From: Kip Macy Date: Tue, 27 Feb 2007 06:42:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/conf options src/sys/kern kern_mutex.c kern_rwlock.c kern_sx.c src/sys/sys lock.h lock_profile.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 06:42:05 -0000 kmacy 2007-02-27 06:42:05 UTC FreeBSD src repository Modified files: sys/conf options sys/kern kern_mutex.c kern_rwlock.c kern_sx.c sys/sys lock.h lock_profile.h Log: 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. Revision Changes Path 1.577 +1 -0 src/sys/conf/options 1.181 +14 -3 src/sys/kern/kern_mutex.c 1.15 +2 -2 src/sys/kern/kern_rwlock.c 1.34 +20 -5 src/sys/kern/kern_sx.c 1.64 +1 -0 src/sys/sys/lock.h 1.10 +8 -1 src/sys/sys/lock_profile.h