lkml.org 
[lkml]   [2013]   [Oct]   [1]   [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

* Peter Zijlstra <peterz@infradead.org> wrote:

> On Sat, Sep 28, 2013 at 11:55:26AM -0700, Linus Torvalds wrote:
> > So if the primary reason for this is really just that f*cking anon_vma
> > lock, then I would seriously suggest:
>
> I would still like to see the rwsem patches merged; even if we end up
> going back to a spin style anon_vma lock.
>
> There's been various reports in the past about how programs are
> significantly faster if they wrap their mmap() calls in a pthread_mutex.
> And this was purely down to the fact that rwsem writer-writer contention
> blows chunks.

That's about the mm->mmap_sem rwsem, right?

That impact would have to be measured carefully, and not just for
workloads where we know that better contention logic helps, but other MM
workloads that are hitting hard on mmap_sem.

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-10-01 10:21    [W:2.788 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site