Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Jan 2006 13:18:26 -0700
From:      Scott Long <scottl@samsco.org>
To:        Daniel Eischen <deischen@freebsd.org>
Cc:        freebsd-hackers@freebsd.org, prime <guomingyan@gmail.com>
Subject:   Re: An idea of remove MUTEX_WAKE_ALL
Message-ID:  <43BADC12.4020204@samsco.org>
In-Reply-To: <Pine.GSO.4.43.0601031506120.525-100000@sea.ntplx.net>
References:  <Pine.GSO.4.43.0601031506120.525-100000@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote:

> On Tue, 3 Jan 2006, Scott Long wrote:
> 
> 
>>>for a bit if the current lock owner is running on another CPU?
>>>Do we currently do that?
>>>
>>>(*) No, I am not referring to spin mutexes.
>>>
>>
>>Adaptive mutexes are enabled by default and have been for at least a
>>year.
> 
> 
> Ahh, then that's what they (Adaptive) do.
> 

Well, it's a bit different from Solaris, I believe.  They do not sleep
after a certain number of contested spins, and instead just continue to
spin.  As we reduce the coverage of large contested locks (like Giant)
this becomes much less of performance problem, though.

Scott



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BADC12.4020204>