Re: [RFC PATCH 4/5] x86,smp: keep spinlock delay values per hashed spinlock address

2013-01-03 Thread Eric Dumazet
On Thu, 2013-01-03 at 04:48 -0800, Michel Lespinasse wrote: > On Wed, Jan 2, 2013 at 9:24 PM, Rik van Riel wrote: > > From: Eric Dumazet > > > > Eric Dumazet found a regression with the spinlock backoff code, > > in workloads where multiple spinlocks were contended, each having > > a different

Re: [RFC PATCH 4/5] x86,smp: keep spinlock delay values per hashed spinlock address

2013-01-03 Thread Michel Lespinasse
On Wed, Jan 2, 2013 at 9:24 PM, Rik van Riel wrote: > From: Eric Dumazet > > Eric Dumazet found a regression with the spinlock backoff code, > in workloads where multiple spinlocks were contended, each having > a different wait time. I think you should really clarify that the regression was

Re: [RFC PATCH 4/5] x86,smp: keep spinlock delay values per hashed spinlock address

2013-01-03 Thread Michel Lespinasse
On Wed, Jan 2, 2013 at 9:24 PM, Rik van Riel r...@redhat.com wrote: From: Eric Dumazet eric.duma...@gmail.com Eric Dumazet found a regression with the spinlock backoff code, in workloads where multiple spinlocks were contended, each having a different wait time. I think you should really

Re: [RFC PATCH 4/5] x86,smp: keep spinlock delay values per hashed spinlock address

2013-01-03 Thread Eric Dumazet
On Thu, 2013-01-03 at 04:48 -0800, Michel Lespinasse wrote: On Wed, Jan 2, 2013 at 9:24 PM, Rik van Riel r...@redhat.com wrote: From: Eric Dumazet eric.duma...@gmail.com Eric Dumazet found a regression with the spinlock backoff code, in workloads where multiple spinlocks were contended,

[RFC PATCH 4/5] x86,smp: keep spinlock delay values per hashed spinlock address

2013-01-02 Thread Rik van Riel
From: Eric Dumazet Eric Dumazet found a regression with the spinlock backoff code, in workloads where multiple spinlocks were contended, each having a different wait time. This patch has multiple delay values per cpu, indexed on a hash of the lock address, to avoid that problem. Eric Dumazet

[RFC PATCH 4/5] x86,smp: keep spinlock delay values per hashed spinlock address

2013-01-02 Thread Rik van Riel
From: Eric Dumazet eric.duma...@gmail.com Eric Dumazet found a regression with the spinlock backoff code, in workloads where multiple spinlocks were contended, each having a different wait time. This patch has multiple delay values per cpu, indexed on a hash of the lock address, to avoid that