From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756012AbcE0QgZ (ORCPT ); Fri, 27 May 2016 12:36:25 -0400 Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:35172 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbcE0QgY (ORCPT ); Fri, 27 May 2016 12:36:24 -0400 Date: Fri, 27 May 2016 18:36:17 +0200 From: Sebastian Andrzej Siewior To: Thomas Gleixner Cc: Darren Hart , LKML , Linus Torvalds , Darren Hart , Peter Zijlstra , Ingo Molnar , Michael Kerrisk , Davidlohr Bueso , Chris Mason , "Carlos O'Donell" , Torvald Riegel , Eric Dumazet Subject: Re: [patch V2 2/7] futex: Hash private futexes per process Message-ID: <20160527163617.GA28561@breakpoint.cc> References: <20160505204230.932454245@linutronix.de> <20160505204353.973009518@linutronix.de> <20160506180933.GE48432@f23x64.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-05-07 10:44:39 [+0200], Thomas Gleixner wrote: > On Fri, 6 May 2016, Darren Hart wrote: > > On Thu, May 05, 2016 at 08:44:04PM -0000, Thomas Gleixner wrote: > Sure, we need to serialize attempts to populate the hash. Especially in the > non preallocated case. The thing with raw vs. non raw spinlocks is that the > latter are expensive on RT and if there are just 5 instructions to protect it > does not make any sense to chose the heavy version. > > > > +config FUTEX_PRIVATE_HASH > > > + bool > > > + default FUTEX && SMP > > > + > > > > So no prompt, not user selectable. If you have SMP, you get this? I think > > automatic is a good call... but is SMP the right criteria, or would NUMA be more > > appropriate since I thought it was keeping the hash local to the NUMA node that > > was the big win? > > Yes, we can make it depend on NUMA. I even thought about making a run time > decision for non preallocated ones when the machine is not numa. But for test > coverage I wanted to have it as widely used as possible. Do we want to change it to autodetect NUMA at runtime or do we want to keep it as is for now? Sebastian