lkml.org 
[lkml]   [2013]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rwsem: reduce spinlock contention in wakeup code path
On Sat, Sep 28, 2013 at 12:33:36PM -0700, Linus Torvalds wrote:
> The old rwlock's really have been a disappointment - they are slower
> than spinlocks, and seldom/never end up scaling any better. Their
> main advantage was literally the irq behavior - allowing readers to
> happen without the expense of worrying about irq's.

So in part that is fundamental to the whole rw-spinlock concept.

Typically lock hold times should be short for spinlock type locks and if
your hold times are short, the lock acquisition times are significant.

And a read acquisition is still a RMW operation on the lock, thus read
locks are still entirely bound by the cacheline transfer of the lock
itself.


\
 
 \ /
  Last update: 2013-09-30 13:01    [W:1.348 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site