Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755171AbbGYWfe (ORCPT ); Sat, 25 Jul 2015 18:35:34 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:38574 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754997AbbGYWfc (ORCPT ); Sat, 25 Jul 2015 18:35:32 -0400 X-Greylist: delayed 10064 seconds by postgrey-1.27 at vger.kernel.org; Sat, 25 Jul 2015 18:35:32 EDT X-Originating-IP: 50.43.43.179 Date: Sat, 25 Jul 2015 15:35:24 -0700 From: Josh Triplett To: Davidlohr Bueso Cc: "Paul E. McKenney" , Stephen Rothwell , Andrew Morton , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: linux-next: build failure after merge of the akpm-current tree Message-ID: <20150725223524.GA14593@x> References: <20150724153334.543cfc7b@canb.auug.org.au> <1437768965.3298.52.camel@stgolabs.net> <20150724230902.GQ3717@linux.vnet.ibm.com> <20150725194739.GA9753@x> <1437859442.3298.68.camel@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437859442.3298.68.camel@stgolabs.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2090 Lines: 45 On Sat, Jul 25, 2015 at 02:24:02PM -0700, Davidlohr Bueso wrote: > On Sat, 2015-07-25 at 12:47 -0700, Josh Triplett wrote: > > I certainly agree that it doesn't make sense to make all architectures > > select SRCU, if an unremovable core kernel feature uses SRCU. If > > possible, I'd really like to avoid seeing SRCU become mandatory again, > > though. > > I find it very strange that srcu is not taken for granted like rcu is, > or even regular locking primitives. How much overhead does srcu add? About 2k. (For scale, note that a tinyconfig kernel is currently on the order of 700-800k, so that's an appreciable fraction of the kernel.) > > Is there any chance at all of the shrinker mechanism becoming optional? > > At first glance, it seems reasonably separate from the rest of mm, in > > that if it didn't exist and shrinking didn't happen, the rest of mm > > still works. If that happened, MM_SHRINKER could select SRCU. > > Some mm functionality might very possibly rely on srcu in the future if > we expect any chances of scaling, ie: faults. So I'd rather not take a > short term solution here, as we'll probably be discussing this again > otherwise. What other mm functionality plans to use SRCU? Among other things, no-mmu builds might still be able to omit it. > > If that's not possible, then for the moment, I'd suggest making a hidden > > symbol MM_SHRINKER that's always y and does "select SRCU", to preserve > > SRCU's modularity for the moment while not forcing every architecture to > > select it. > > This is _very_ hacking. While tinyfication has its uses and > applications, I'd rather not have it in the way of normal kernels. Thinking about it further, the better alternative if SRCU can't be kept optional CONFIG_SRCU "default y" and hidden, so that it doesn't get disabled by tinyconfig. - Josh Triplett -- 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/