Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755231AbbBTQho (ORCPT ); Fri, 20 Feb 2015 11:37:44 -0500 Received: from e33.co.us.ibm.com ([32.97.110.151]:59772 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753762AbbBTQhn (ORCPT ); Fri, 20 Feb 2015 11:37:43 -0500 Date: Fri, 20 Feb 2015 08:37:37 -0800 From: "Paul E. McKenney" To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com Subject: Re: [PATCH tip/core/rcu 0/4] Programmatic nestable expedited grace periods Message-ID: <20150220163737.GL5745@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20150220050850.GA32639@linux.vnet.ibm.com> <20150220091107.GN21418@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150220091107.GN21418@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15022016-0009-0000-0000-000008ED1DBC Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1784 Lines: 40 On Fri, Feb 20, 2015 at 10:11:07AM +0100, Peter Zijlstra wrote: > On Thu, Feb 19, 2015 at 09:08:50PM -0800, Paul E. McKenney wrote: > > Hello! > > > > This series, possibly for v3.21, contains changes that allow in-kernel > > code to specify that all subsequent synchronous grace-period primitives > > (synchronize_rcu() and friends) be expedited. New rcu_expedite_gp() > > and rcu_unexpedite_gp() primitives enable and disable expediting, > > and these may be nested. Note that the rcu_expedited boot/sysfs > > variable, if non-zero, causes expediting to happen regardless of calls > > to rcu_expedite_gp(). > > > > Because one of the use cases for these primitives is to expedite > > grace periods during the in-kernel portion of boot, a new Kconfig > > parameter named CONFIG_RCU_EXPEDITE_BOOT causes the kernel to act > > as if rcu_expedite_gp() was called very early in boot. At the end > > of boot (presumably just before init is spawned), a call to > > rcu_end_inkernel_boot() will provide the matching rcu_unexpedite_gp() > > if required. > > So I though we wanted to get rid / limit the expedited stuff because its > IPI happy, and here its spreading. Well, at least it no longer IPIs idle CPUs. ;-) And this is during boot, when a few extra IPIs should not be a big deal. > Does it really make a machine boot much faster? Why are people using > synchronous gp primitives if they care about speed? Should we not fix > that instead? The report I heard was that it provided 10-15% faster boot times. Thanx, Paul -- 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/