Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933141Ab3EOVLY (ORCPT ); Wed, 15 May 2013 17:11:24 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:40771 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932921Ab3EOVLU (ORCPT ); Wed, 15 May 2013 17:11:20 -0400 Date: Wed, 15 May 2013 10:58:15 -0700 From: "Paul E. McKenney" To: Robin Holt Cc: "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: Re: Commit 911af505 introduced a bootmem warning. Message-ID: <20130515175815.GM4442@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20130515075742.GL3658@sgi.com> <20130515143249.GH4442@linux.vnet.ibm.com> <20130515153348.GT3658@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130515153348.GT3658@sgi.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13051521-7182-0000-0000-000006BBC31C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3698 Lines: 72 On Wed, May 15, 2013 at 10:33:48AM -0500, Robin Holt wrote: > On Wed, May 15, 2013 at 07:32:49AM -0700, Paul E. McKenney wrote: > > On Wed, May 15, 2013 at 02:57:42AM -0500, Robin Holt wrote: > > > Paul, > > > > > > When we boot Linus' current kernel we get the following warning early > > > in boot: > > > > > > ---------------------------------------------------------------------- > > > [ 0.000000] Memory: 63081268k/99598336k available (4832k kernel code, 34651396k absent, 1865672k reserved, 6269k data, > > > 1672k init) > > > [ 0.000000] Hierarchical RCU implementation. > > > [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled. > > > [ 0.000000] RCU restricting CPUs from NR_CPUS=4096 to nr_cpu_ids=32. > > > [ 0.000000] ------------[ cut here ]------------ > > > [ 0.000000] WARNING: at mm/nobootmem.c:215 ___alloc_bootmem_nopanic+0x79/0x82() > > > [ 0.000000] Modules linked in: > > > [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.0-rc1-uv-hz100-rja+ #3 > > > [ 0.000000] Hardware name: SGI UV2000/ROMLEY, BIOS SGI UV 2000/3000 series BIOS 01/15/2013 > > > [ 0.000000] 00000000000000d7 ffffffff81a01e38 ffffffff814a873c ffffffff81a01e78 > > > [ 0.000000] ffffffff81045a7b ffffffff81ced5a2 0000000000000000 ffffffffffffffff > > > [ 0.000000] 0000000000000040 0000000000000200 0000000067da2bfc ffffffff81a01e88 > > > [ 0.000000] Call Trace: > > > [ 0.000000] [] dump_stack+0x19/0x1d > > > [ 0.000000] [] warn_slowpath_common+0x6b/0xa0 > > > [ 0.000000] [] warn_slowpath_null+0x15/0x20 > > > [ 0.000000] [] ___alloc_bootmem_nopanic+0x79/0x82 > > > [ 0.000000] [] ___alloc_bootmem+0x11/0x3c > > > [ 0.000000] [] __alloc_bootmem+0x10/0x12 > > > [ 0.000000] [] alloc_bootmem_cpumask_var+0x1d/0x27 > > > [ 0.000000] [] rcu_bootup_announce_oddness+0xd0/0x153 > > > [ 0.000000] [] rcu_init+0x1e/0x1e6 > > > [ 0.000000] [] start_kernel+0x1e6/0x43c > > > [ 0.000000] [] ? repair_env_string+0x58/0x58 > > > [ 0.000000] [] x86_64_start_reservations+0x1b/0x32 > > > [ 0.000000] [] x86_64_start_kernel+0x12a/0x131 > > > [ 0.000000] ---[ end trace c8b13488e92fad65 ]--- > > > [ 0.000000] Experimental no-CBs for all CPUs > > > [ 0.000000] Experimental no-CBs CPUs: 0-31. > > > [ 0.000000] NO_HZ: Full dynticks CPUs: 1-31. > > > > Could you please try the following patch and let me know if it helps? > > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > rcu: Don't allocate bootmem from rcu_init() > > > > When rcu_init() is called we already have slab working, allocating > > bootmem at that point results in warnings and an allocation from > > slab. This commit therefore changes alloc_bootmem_cpumask_var() to > > alloc_cpumask_var() in rcu_bootup_announce_oddness(), which is called > > from rcu_init(). > > > > Signed-off-by: Sasha Levin > > Signed-off-by: Paul E. McKenney > > Reviewed-by: Josh Triplett > > Tested-by: Robin Holt > > Works great. Thank you, queued for 3.10 as a regression. 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/