From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 13:31:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50B6416A4CF for ; Fri, 4 Jun 2004 13:31:41 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDD5A43D2F for ; Fri, 4 Jun 2004 13:31:40 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i54KUSHE098785; Fri, 4 Jun 2004 16:30:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i54KUSi2098782; Fri, 4 Jun 2004 16:30:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 4 Jun 2004 16:30:28 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Steven Hartland In-Reply-To: <00fb01c44a71$c7f26d10$b3db87d4@multiplay.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: Ali Niknam Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:31:41 -0000 On Fri, 4 Jun 2004, Steven Hartland wrote: > > You might want to try adding "options ADAPTIVE_MUTEXES" to your kernel > > configuration, which will cause mutexes to spin briefly on SMP systems > > before sleeping, and has been observed to improve performance quite a bit. > > Thats very interesting is there a specific set off conditions where it > would pay off that you guys know of or is it more a try it and see? > > We run ~ 100 dual machines here the vast majority FreeBSD as game > servers and would consider upgrading the kernels if you thought it would > help. Well, I know a bit about the general conditions -- situations where mutexes are held for short periods of time, rather than over long transactions. I know from experience that adaptive mutexes can make an observable difference for system builds and IPC activities. To what extent do you have systems where you can reproduce your production load without impacting production quality? I may have some interesting patches for you to try running with, if so :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research