From b505f47bef3ce8a322afd972a959a150fd11865b Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 11 Aug 2004 01:34:18 +0000 Subject: [PATCH] Add ADAPTIVE_GIANT to GENERIC on i386, with the intent of making it a standard configuration similar to [NO_]ADAPTIVE_MUTEXES. This feature causes Giant to be included in the set of mutexes adaptively spun on. It appears to have a positive effect on performance on SMP across several workloads, including measurements of a 16% improvement on buildworld, and 30%+ improvement for MySQL using the supersmack benchmark with Giant over the network stack; a 6% improvement without Giant on the network stack (as a result of less giant contention). --- sys/i386/conf/GENERIC | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/i386/conf/GENERIC b/sys/i386/conf/GENERIC index 5bb33922254c..2cedebba933e 100644 --- a/sys/i386/conf/GENERIC +++ b/sys/i386/conf/GENERIC @@ -59,6 +59,7 @@ options AHC_REG_PRETTY_PRINT # Print register bitfields in debug options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. options PFIL_HOOKS # pfil(9) framework +options ADAPTIVE_GIANT # Giant mutex is adaptive. # Debugging for use in -current options KDB # Enable kernel debugger support.