Re: [RFC PATCH v2] Implement Batched (group) ticket lock

2014-07-01 Thread Raghavendra K T
For baremetal we continue to have 'fully fair ticketlock' with this patch series. But but but, we're looking at removing ticket locks. So why do we want to invest in them now? I have nothing against qspinlock. I am happy to test it/add any bit to it if I could. With this patch we get exc

Re: [RFC PATCH v2] Implement Batched (group) ticket lock

2014-07-01 Thread Peter Zijlstra
On Tue, Jul 01, 2014 at 03:14:09PM +0530, Raghavendra K T wrote: > On 07/01/2014 01:35 PM, Peter Zijlstra wrote: > >On Sat, Jun 28, 2014 at 02:47:04PM +0530, Raghavendra K T wrote: > >>In virtualized environment there are mainly three problems > >>related to spinlocks that affects performance. > >>

Re: [RFC PATCH v2] Implement Batched (group) ticket lock

2014-07-01 Thread Raghavendra K T
On 07/01/2014 01:35 PM, Peter Zijlstra wrote: On Sat, Jun 28, 2014 at 02:47:04PM +0530, Raghavendra K T wrote: In virtualized environment there are mainly three problems related to spinlocks that affects performance. 1. LHP (lock holder preemption) 2. Lock Waiter Preemption (LWP) 3. Starvation/f

Re: [RFC PATCH v2] Implement Batched (group) ticket lock

2014-07-01 Thread Peter Zijlstra
On Sat, Jun 28, 2014 at 02:47:04PM +0530, Raghavendra K T wrote: > In virtualized environment there are mainly three problems > related to spinlocks that affects performance. > 1. LHP (lock holder preemption) > 2. Lock Waiter Preemption (LWP) > 3. Starvation/fairness > > Though Ticketlocks solve f

[RFC PATCH v2] Implement Batched (group) ticket lock

2014-06-28 Thread Raghavendra K T
In virtualized environment there are mainly three problems related to spinlocks that affects performance. 1. LHP (lock holder preemption) 2. Lock Waiter Preemption (LWP) 3. Starvation/fairness Though Ticketlocks solve fairness problem it worsens LWP, LHP problems. Though pv-ticketlocks tried to ad