From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from casper.infradead.org ([85.118.1.10]:52906 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932256AbcA0Qi7 (ORCPT ); Wed, 27 Jan 2016 11:38:59 -0500 Date: Wed, 27 Jan 2016 17:38:55 +0100 From: Peter Zijlstra To: Andi Kleen Cc: Waiman Long , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Alexander Viro , linux-fsdevel@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Scott J Norton , Douglas Hatch Subject: Re: [RFC PATCH 2/3] lib/list_batch, x86: Enable list insertion/deletion batching in x86-64 Message-ID: <20160127163855.GV6357@twins.programming.kicks-ass.net> References: <1453824219-51437-1-git-send-email-Waiman.Long@hpe.com> <1453824219-51437-3-git-send-email-Waiman.Long@hpe.com> <87vb6gc8ya.fsf@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vb6gc8ya.fsf@tassilo.jf.intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jan 26, 2016 at 01:44:13PM -0800, Andi Kleen wrote: > Waiman Long writes: > > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 330e738..443e41d 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -42,6 +42,7 @@ config X86 > > select ARCH_SUPPORTS_NUMA_BALANCING if X86_64 > > select ARCH_USE_BUILTIN_BSWAP > > select ARCH_USE_CMPXCHG_LOCKREF if X86_64 > > + select ARCH_USE_LIST_BATCHING if X86_64 > > I would make it unconditional. The code is simple enough > and shouldn't have drawbacks on smaller systems. I agree with the sentiment but would like to see a benchmark done on a small system to verify all the same.