Re: 答复: [PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-05 Thread Will Deacon
On Fri, May 05, 2017 at 06:28:45PM +0300, Yury Norov wrote: > On Fri, May 05, 2017 at 01:26:40PM +0100, Will Deacon wrote: > > On Fri, May 05, 2017 at 01:53:03PM +0200, Peter Zijlstra wrote: > > > On Thu, May 04, 2017 at 11:28:09PM +0300, Yury Norov wrote: > > > > I don't think > > > > it's a real

Re: 答复: [PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-05 Thread Yury Norov
On Fri, May 05, 2017 at 01:26:40PM +0100, Will Deacon wrote: > On Fri, May 05, 2017 at 01:53:03PM +0200, Peter Zijlstra wrote: > > On Thu, May 04, 2017 at 11:28:09PM +0300, Yury Norov wrote: > > > I don't think > > > it's a real use case to have ticket spinlocks and queued rwlocks > > > > There's

Re: 答复: [PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-05 Thread Will Deacon
On Fri, May 05, 2017 at 01:53:03PM +0200, Peter Zijlstra wrote: > On Thu, May 04, 2017 at 11:28:09PM +0300, Yury Norov wrote: > > I don't think > > it's a real use case to have ticket spinlocks and queued rwlocks > > There's nothing wrong with that combination. In fact, we merged qrwlock > much ea

Re: 答复: [PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-05 Thread Peter Zijlstra
On Thu, May 04, 2017 at 11:28:09PM +0300, Yury Norov wrote: > I don't think > it's a real use case to have ticket spinlocks and queued rwlocks There's nothing wrong with that combination. In fact, we merged qrwlock much earlier than qspinlock.

Re: 答复: [PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-04 Thread Yury Norov
On Wed, May 03, 2017 at 06:59:19PM +, pan xinhui wrote: > 在 2017/5/3 22:51, Yury Norov 写道:> The patch 3 adds implementation for > queued-based locking on > > ARM64, and the option in kernel config to enable it. Patches > > 1 and 2 fix some mess in header files to apply patch 3 smoothly. > > >

[PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-05-03 Thread Yury Norov
The patch 3 adds implementation for queued-based locking on ARM64, and the option in kernel config to enable it. Patches 1 and 2 fix some mess in header files to apply patch 3 smoothly. Tested on QDF2400 with huge improvements with these patches on the torture tests, by Adam Wallis. Tested on Thu

Re: [RFC PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-04-28 Thread Will Deacon
On Thu, Apr 13, 2017 at 01:33:09PM +0300, Yury Norov wrote: > On Wed, Apr 12, 2017 at 01:04:55PM -0400, Adam Wallis wrote: > > On 4/10/2017 5:35 PM, Yury Norov wrote: > > > The patch of Jan Glauber enables queued spinlocks on arm64. I rebased it > > > on > > > latest kernel sources, and added a co

Re: [RFC PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-04-24 Thread Will Deacon
On Wed, Apr 12, 2017 at 01:04:55PM -0400, Adam Wallis wrote: > On 4/10/2017 5:35 PM, Yury Norov wrote: > > The patch of Jan Glauber enables queued spinlocks on arm64. I rebased it on > > latest kernel sources, and added a couple of fixes to headers to apply it > > smoothly. > > > > Though, lockto

Re: [RFC PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-04-13 Thread Yury Norov
On Wed, Apr 12, 2017 at 01:04:55PM -0400, Adam Wallis wrote: > On 4/10/2017 5:35 PM, Yury Norov wrote: > > The patch of Jan Glauber enables queued spinlocks on arm64. I rebased it on > > latest kernel sources, and added a couple of fixes to headers to apply it > > smoothly. > > > > Though, lockto

Re: [RFC PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-04-12 Thread Adam Wallis
On 4/10/2017 5:35 PM, Yury Norov wrote: > The patch of Jan Glauber enables queued spinlocks on arm64. I rebased it on > latest kernel sources, and added a couple of fixes to headers to apply it > smoothly. > > Though, locktourture test shows significant performance degradation in the > acquisitio

[RFC PATCH 0/3] arm64: queued spinlocks and rw-locks

2017-04-10 Thread Yury Norov
The patch of Jan Glauber enables queued spinlocks on arm64. I rebased it on latest kernel sources, and added a couple of fixes to headers to apply it smoothly. Though, locktourture test shows significant performance degradation in the acquisition of rw-lock for read on qemu: