Re: [RFC PATCH 2/5] futex: add optimistic spinning to FUTEX_SPIN_LOCK

2014-07-22 Thread Waiman Long
On 07/21/2014 04:17 PM, Jason Low wrote: On Mon, 2014-07-21 at 11:24 -0400, Waiman Long wrote: This patch adds code to do optimistic spinning for the FUTEX_SPIN_LOCK primitive on the futex value when the lock owner is running. It is the same optimistic spinning technique that is done in the mute

Re: [RFC PATCH 2/5] futex: add optimistic spinning to FUTEX_SPIN_LOCK

2014-07-22 Thread Waiman Long
On 07/21/2014 01:15 PM, Davidlohr Bueso wrote: On Mon, 2014-07-21 at 11:24 -0400, Waiman Long wrote: This patch adds code to do optimistic spinning for the FUTEX_SPIN_LOCK primitive on the futex value when the lock owner is running. It is the same optimistic spinning technique that is done in th

Re: [RFC PATCH 2/5] futex: add optimistic spinning to FUTEX_SPIN_LOCK

2014-07-21 Thread Jason Low
On Mon, 2014-07-21 at 11:24 -0400, Waiman Long wrote: > This patch adds code to do optimistic spinning for the FUTEX_SPIN_LOCK > primitive on the futex value when the lock owner is running. It is > the same optimistic spinning technique that is done in the mutex and > rw semaphore code to improve t

Re: [RFC PATCH 2/5] futex: add optimistic spinning to FUTEX_SPIN_LOCK

2014-07-21 Thread Davidlohr Bueso
On Mon, 2014-07-21 at 11:24 -0400, Waiman Long wrote: > This patch adds code to do optimistic spinning for the FUTEX_SPIN_LOCK > primitive on the futex value when the lock owner is running. It is > the same optimistic spinning technique that is done in the mutex and > rw semaphore code to improve t

[RFC PATCH 2/5] futex: add optimistic spinning to FUTEX_SPIN_LOCK

2014-07-21 Thread Waiman Long
This patch adds code to do optimistic spinning for the FUTEX_SPIN_LOCK primitive on the futex value when the lock owner is running. It is the same optimistic spinning technique that is done in the mutex and rw semaphore code to improve their performance especially on large systems with large number