From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752788AbaBCLj2 (ORCPT ); Mon, 3 Feb 2014 06:39:28 -0500 Received: from merlin.infradead.org ([205.233.59.134]:43889 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbaBCLj0 (ORCPT ); Mon, 3 Feb 2014 06:39:26 -0500 Date: Mon, 3 Feb 2014 12:38:57 +0100 From: Peter Zijlstra To: Ingo Molnar Cc: Waiman Long , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Arnd Bergmann , linux-arch@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Steven Rostedt , Andrew Morton , Michel Lespinasse , Andi Kleen , Rik van Riel , "Paul E. McKenney" , Linus Torvalds , Raghavendra K T , George Spelvin , Tim Chen , aswin@hp.com, Scott J Norton Subject: Re: [PATCH v11 0/4] Introducing a queue read/write lock implementation Message-ID: <20140203113857.GG8874@twins.programming.kicks-ass.net> References: <1390537731-45996-1-git-send-email-Waiman.Long@hp.com> <20140130130453.GB2936@laptop.programming.kicks-ass.net> <20140130151715.GA5126@laptop.programming.kicks-ass.net> <20140131092616.GC5126@laptop.programming.kicks-ass.net> <52EBF276.1020505@hp.com> <20140131201401.GD2936@laptop.programming.kicks-ass.net> <52EC110D.4030509@hp.com> <20140202090357.GA1006@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140202090357.GA1006@gmail.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 02, 2014 at 10:03:57AM +0100, Ingo Molnar wrote: > > * Waiman Long wrote: > > > How about making the selection of MCS or ticket queuing either user > > configurable or depending on the setting of NR_CPUS, NUMA, etc? > > No! > > There are lots of disadvantages to adding such CONFIG_NUMA Kconfig > variants for locking primitives: > > - an doubling of the test matrix > > - an doubling of the review matrix and a halving of effective review > capacity: we've just about go the capacity to review and validate > patches like this. Splitting out a 'only NUMA cares' variant is a > non-starter really. > > - but most importantly, there's absolutely no reason to not be fast > on 128 CPU systems in the low contended case either! Sacrificing > the low contended case with 'on 128 CPU systems it is the contended > path that matters' is an idiotic argument. Not to mention distros will only ever pick one. Also, there's probably several orders of magnitude more single and dual socket systems out there than there are quad or bigger systems. So even if the lightly contended case is say only 1% slower, that could still add up to more cycles lost than won over all computers out there running Linux.