Re: [PATCH-tip 3/3] locking/rwsem: Stop active read lock ASAP

2017-02-27 Thread Waiman Long
On 02/26/2017 01:58 PM, Davidlohr Bueso wrote: > On Wed, 22 Feb 2017, Waiman Long wrote: > >> On a 2-socket 36-core 72-thread x86-64 E5-2699 v3 system, a rwsem >> microbenchmark was run with 36 locking threads (one/core) doing 100k >> reader and writer lock/unlock operations each, the resulting loc

Re: [PATCH-tip 3/3] locking/rwsem: Stop active read lock ASAP

2017-02-26 Thread Davidlohr Bueso
On Wed, 22 Feb 2017, Waiman Long wrote: On a 2-socket 36-core 72-thread x86-64 E5-2699 v3 system, a rwsem microbenchmark was run with 36 locking threads (one/core) doing 100k reader and writer lock/unlock operations each, the resulting locking rates (avg of 3 runs) on a 4.10 kernel were 561.4 Mo

[PATCH-tip 3/3] locking/rwsem: Stop active read lock ASAP

2017-02-22 Thread Waiman Long
Currently, when down_read() fails, the active read locking isn't undone until the rwsem_down_read_failed() function grabs the wait_lock. If the wait_lock is contended, it may takes a while to get the lock. During that period, writer lock stealing will be disabled because of the active read lock. T