Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2016 01:02:23 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r303643 - in head/sys: kern sys
Message-ID:  <20160801230222.GA24559@dft-labs.eu>
In-Reply-To: <201608012148.u71LmbaA003739@repo.freebsd.org>
References:  <201608012148.u71LmbaA003739@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 01, 2016 at 09:48:37PM +0000, Mateusz Guzik wrote:
>   Implement trivial backoff for locking primitives.
>   
[..]
>   For simplicity, this first thouch implementation only modifies spinning
>   loops where the lock owner is running. spin mutexes and thread lock were
>   not modified.
>   

What maybe I should have noted in the commit message.

This is a perfectly MFCable and much needed band-aid, which will later
be extended to cover the rest of the loops and other primitives.

There are several approaches which give better results but are also
significantly more complicated to implement. Until a suitable approach
is worked out and tested, the work here hopefully helps enough.

-- 
Mateusz Guzik <mjguzik gmail.com>



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