Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861Ab3JAHsJ (ORCPT ); Tue, 1 Oct 2013 03:48:09 -0400 Received: from mail-ee0-f54.google.com ([74.125.83.54]:42202 "EHLO mail-ee0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751390Ab3JAHsH (ORCPT ); Tue, 1 Oct 2013 03:48:07 -0400 Date: Tue, 1 Oct 2013 09:48:02 +0200 From: Ingo Molnar To: Peter Zijlstra Cc: Linus Torvalds , Waiman Long , Ingo Molnar , Andrew Morton , Linux Kernel Mailing List , Rik van Riel , Peter Hurley , Davidlohr Bueso , Alex Shi , Tim Chen , Andrea Arcangeli , Matthew R Wilcox , Dave Hansen , Michel Lespinasse , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Subject: Re: [PATCH] rwsem: reduce spinlock contention in wakeup code path Message-ID: <20131001074802.GB20889@gmail.com> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> <20130930104658.GX3081@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130930104658.GX3081@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 29 * Peter Zijlstra 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/