From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755689AbZLBXZv (ORCPT ); Wed, 2 Dec 2009 18:25:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754454AbZLBXZv (ORCPT ); Wed, 2 Dec 2009 18:25:51 -0500 Received: from relay2-v.mail.gandi.net ([217.70.178.76]:42561 "EHLO relay2-v.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbZLBXZu (ORCPT ); Wed, 2 Dec 2009 18:25:50 -0500 Date: Wed, 2 Dec 2009 15:25:42 -0800 From: Josh Triplett To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, dvhltc@us.ibm.com, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com Subject: Re: [PATCH tip/core/rcu 2/4] rcu: enable fourth level of TREE_RCU hierarchy Message-ID: <20091202232541.GB5479@feather> References: <20091202200955.GA12950@linux.vnet.ibm.com> <12597846161257-git-send-email-> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12597846161257-git-send-email-> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02, 2009 at 12:10:14PM -0800, Paul E. McKenney wrote: > From: Paul E. McKenney > > Enable a fourth level of rcu_node hierarchy for TREE_RCU and > TREE_PREEMPT_RCU. This is for stress-testing and experiemental > purposes only, although in theory this would enable 16,777,216 CPUs > on 64-bit systems, though only 1,048,576 CPUs on 32-bit systems. > Normal experimental use of this fourth level will normally set > CONFIG_RCU_FANOUT=2, requiring a 16-CPU system, though the more > adventurous (and more fortunate) experimenters may wish to chose > CONFIG_RCU_FANOUT=3 for 81-CPU systems or even CONFIG_RCU_FANOUT=4 for > 256-CPU systems. > > Signed-off-by: Paul E. McKenney I like this idea in general, but I have one suggestion on your boot-up message: > --- a/kernel/rcutree.c > +++ b/kernel/rcutree.c [...] > @@ -1877,6 +1878,9 @@ void __init rcu_init(void) > #ifdef CONFIG_RCU_CPU_STALL_DETECTOR > printk(KERN_INFO "RCU-based detection of stalled CPUs is enabled.\n"); > #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ > +#if NUM_RCU_LVL_4 != 0 > + printk(KERN_INFO "Experimental four-level hierarchy is enabled.\n"); > +#endif /* #if NUM_RCU_LVL_4 != 0 */ Rather than printing a message when people use the four-level hierarchy, how about just printing a message any time someone has set CONFIG_RCU_FANOUT manually rather than automatically, and including NR_CPUS in that message? That should only occur when testing or when trying to do NUMA optimization, and either way it seems worth noting. Either way the change seems fine to me. With or without that suggested change: Acked-by: Josh Triplett