Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-07-01 Thread Paul E. McKenney
On Mon, Jul 01, 2013 at 02:49:34PM +0530, Raghavendra KT wrote: > On Sun, Jun 23, 2013 at 11:23 PM, Raghavendra KT > wrote: > > > > > > On Wed, Jun 12, 2013 at 9:10 PM, Paul E. McKenney > > wrote: > >> > >> Breaking up locks is better than implementing high-contention locks, but > >> if we must h

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-07-01 Thread Raghavendra KT
On Sun, Jun 23, 2013 at 11:23 PM, Raghavendra KT wrote: > > > On Wed, Jun 12, 2013 at 9:10 PM, Paul E. McKenney > wrote: >> >> Breaking up locks is better than implementing high-contention locks, but >> if we must have high-contention locks, why not make them automatically >> switch between light

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-14 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 09:28:16AM +0800, Lai Jiangshan wrote: > On 06/14/2013 07:57 AM, Paul E. McKenney wrote: > > On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: > >> On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney > >> wrote: > >>> On Thu, Jun 13, 2013 at 10:55:41AM +0800, La

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-14 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 03:12:43PM +0800, Lai Jiangshan wrote: > On 06/14/2013 07:57 AM, Paul E. McKenney wrote: > > On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: > >> On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney > >> wrote: > >>> On Thu, Jun 13, 2013 at 10:55:41AM +0800, La

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-14 Thread Lai Jiangshan
On 06/14/2013 07:57 AM, Paul E. McKenney wrote: > On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: >> On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney >> wrote: >>> On Thu, Jun 13, 2013 at 10:55:41AM +0800, Lai Jiangshan wrote: On 06/12/2013 11:40 PM, Paul E. McKenney wrote: >

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-13 Thread Lai Jiangshan
On 06/14/2013 07:57 AM, Paul E. McKenney wrote: > On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: >> On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney >> wrote: >>> On Thu, Jun 13, 2013 at 10:55:41AM +0800, Lai Jiangshan wrote: On 06/12/2013 11:40 PM, Paul E. McKenney wrote: >

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-13 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: > On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney > wrote: > > On Thu, Jun 13, 2013 at 10:55:41AM +0800, Lai Jiangshan wrote: > >> On 06/12/2013 11:40 PM, Paul E. McKenney wrote: > >> > Breaking up locks is better than implementing

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-13 Thread Lai Jiangshan
On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney wrote: > On Thu, Jun 13, 2013 at 10:55:41AM +0800, Lai Jiangshan wrote: >> On 06/12/2013 11:40 PM, Paul E. McKenney wrote: >> > Breaking up locks is better than implementing high-contention locks, but >> > if we must have high-contention locks, wh

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-13 Thread Paul E. McKenney
On Thu, Jun 13, 2013 at 10:55:41AM +0800, Lai Jiangshan wrote: > On 06/12/2013 11:40 PM, Paul E. McKenney wrote: > > Breaking up locks is better than implementing high-contention locks, but > > if we must have high-contention locks, why not make them automatically > > switch between light-weight ti

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-12 Thread Lai Jiangshan
On 06/12/2013 11:40 PM, Paul E. McKenney wrote: > Breaking up locks is better than implementing high-contention locks, but > if we must have high-contention locks, why not make them automatically > switch between light-weight ticket locks at low contention and queued > locks at high contention? Af

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-12 Thread Paul E. McKenney
On Thu, Jun 13, 2013 at 12:13:47AM +0800, Lai Jiangshan wrote: > On Wed, Jun 12, 2013 at 11:40 PM, Paul E. McKenney > wrote: > > Breaking up locks is better than implementing high-contention locks, but > > if we must have high-contention locks, why not make them automatically > > switch between li

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-12 Thread Lai Jiangshan
On Wed, Jun 12, 2013 at 11:40 PM, Paul E. McKenney wrote: > Breaking up locks is better than implementing high-contention locks, but > if we must have high-contention locks, why not make them automatically > switch between light-weight ticket locks at low contention and queued > locks at high cont

[PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-12 Thread Paul E. McKenney
Breaking up locks is better than implementing high-contention locks, but if we must have high-contention locks, why not make them automatically switch between light-weight ticket locks at low contention and queued locks at high contention? After all, this would remove the need for the developer to