From owner-cvs-src@FreeBSD.ORG Tue Jul 27 16:34:48 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9AA716A4CF; Tue, 27 Jul 2004 16:34:48 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F5D743D2D; Tue, 27 Jul 2004 16:34:48 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6RGYmxx042220; Tue, 27 Jul 2004 16:34:48 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6RGYmaO042219; Tue, 27 Jul 2004 16:34:48 GMT (envelope-from rwatson) Message-Id: <200407271634.i6RGYmaO042219@repoman.freebsd.org> From: Robert Watson Date: Tue, 27 Jul 2004 16:34:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_mutex.c src/sys/conf NOTES options X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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 Jul 2004 16:34:48 -0000 rwatson 2004-07-27 16:34:48 UTC FreeBSD src repository Modified files: sys/kern kern_mutex.c sys/conf NOTES options Log: Add "options ADAPTIVE_GIANT" which causes Giant to also be treated in an adaptive fashion when adaptive mutexes are enabled. The theory behind non-adaptive Giant is that Giant will be held for long periods of time, and therefore spinning waiting on it is wasteful. However, in MySQL benchmarks which are relatively Giant-free, running Giant adaptive makes an observable difference on SMP (5% transaction rate improvement). As such, make adaptive behavior on Giant an option so it can be more widely benchmarked. Revision Changes Path 1.1251 +6 -0 src/sys/conf/NOTES 1.468 +1 -0 src/sys/conf/options 1.145 +4 -0 src/sys/kern/kern_mutex.c