Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756185Ab3I3Trn (ORCPT ); Mon, 30 Sep 2013 15:47:43 -0400 Received: from mga09.intel.com ([134.134.136.24]:57575 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755187Ab3I3Trm (ORCPT ); Mon, 30 Sep 2013 15:47:42 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.90,1009,1371106800"; d="scan'208";a="385872426" Subject: Re: [PATCH, v2] anon_vmas: Convert the rwsem to an rwlock_t From: Tim Chen To: Waiman Long Cc: Peter Zijlstra , Ingo Molnar , Linus Torvalds , Ingo Molnar , Andrew Morton , Linux Kernel Mailing List , Rik van Riel , Peter Hurley , Davidlohr Bueso , Alex Shi , Andrea Arcangeli , Matthew R Wilcox , Dave Hansen , Michel Lespinasse , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" In-Reply-To: <5249D26C.8020208@hp.com> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> <20130928192123.GA8228@gmail.com> <20130928193739.GA8642@gmail.com> <20130928195207.GA31245@gmail.com> <1380561027.3467.196.camel@schen9-DESK> <20130930181411.GO15690@laptop.programming.kicks-ass.net> <1380568987.3467.198.camel@schen9-DESK> <5249D26C.8020208@hp.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 30 Sep 2013 12:47:16 -0700 Message-ID: <1380570436.3467.199.camel@schen9-DESK> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1489 Lines: 40 On Mon, 2013-09-30 at 15:35 -0400, Waiman Long wrote: > On 09/30/2013 03:23 PM, Tim Chen wrote: > > On Mon, 2013-09-30 at 20:14 +0200, Peter Zijlstra wrote: > >> On Mon, Sep 30, 2013 at 10:10:27AM -0700, Tim Chen wrote: > >>> Here's the exim workload data: > >>> > >>> rwsem improvment: > >>> Waimain's patch: +2.0% > >>> Alex+Tim's patchset: +4.8% > >>> Waiman+Alex+Tim: +5.3% > >>> > >>> convert rwsem to rwlock_t for root anon_vma lock > >>> Ingo's patch +11.7% > >>> > >> What happens if you stuff Waiman's qrwlock patches on top of that? > >> admittedly and oft mentioned in this thread, our current rwlock_t is > >> somewhat suboptimal under a number of conditions. > > I've tested with Waiman's qrwlock patches on top of Ingo's patches. > > It does not affect the throughput for exim and I still get > > about +11.7% throughput change (same as with Ingo's patch only). > > > > Tim > > > > My qrwlock doesn't enable qrwlock by default. You have to use menuconfig > to explicitly enable it. Have you done that when you build the test > kernel? I am thinking of explicitly enabling it for x86 if the anon-vma > lock is converted back to a rwlock. > Yes, I have explicitly enabled it during my testing. Thanks. Tim -- 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/