Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2009 10:04:13 +0200
From:      Attilio Rao <attilio@freebsd.org>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r193011 - in head: . share/man/man9  sys/cddl/compat/opensolaris/sys sys/conf sys/kern sys/sys
Message-ID:  <3bbf2fe10905290104q50d77235pe50a39a3912f6061@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.0905290843210.86277@fledge.watson.org>
References:  <200905290149.n4T1nRJc056207@svn.freebsd.org> <alpine.BSF.2.00.0905290843210.86277@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/5/29 Robert Watson <rwatson@freebsd.org>:
> On Fri, 29 May 2009, Attilio Rao wrote:
>
>>  Reverse the logic for ADAPTIVE_SX option and enable it by default.
>>  Introduce for this operation the reverse NO_ADAPTIVE_SX option.
>>  The flag SX_ADAPTIVESPIN to be passed to sx_init_flags(9) gets suppressed
>>  and the new flag, offering the reversed logic, SX_NOADAPTIVE is added.
>>
>>  Additively implements adaptive spininning for sx held in shared mode.
>>  The spinning limit can be handled through sysctls in order to be tuned
>>  while the code doesn't reach the release, after which time they should
>>  be dropped probabilly.
>
> The princple here has always been that sleepable locks are likely to be used
> in sleepable ways, and therefore that adaptive locking (spinning) was
> unproductive.  In light of these performance results, have you considered
> making the same change to lockmgr (assuming it's not there already)?  Also,
> is adaptive locking for sx locks disabled in Xen by default in the same was
> as mutexes?

Yes, lockmgrs are the next ones to be handled in regard of this.

I'm actually prodding key people abuout experimenting adaptive
spinning and reporting to me. Let's see if they can get some
interesting benchmark in edge cases (Xen too).

Thanks,
Attilio


-- 
Peace can only be achieved by understanding - A. Einstein



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