From owner-svn-src-all@FreeBSD.ORG Thu Jan 23 07:35:55 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8AB4A10; Thu, 23 Jan 2014 07:35:55 +0000 (UTC) Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com [IPv6:2607:f8b0:400d:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3BA041B63; Thu, 23 Jan 2014 07:35:55 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id i13so1789915qae.27 for ; Wed, 22 Jan 2014 23:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MYs1XN/LA5Z9xQvFRNQwOS3w35K+dFTJasvaovyP3bc=; b=KyIhkc2TfeteN24qa5soDgIxvSc/owXkVshdJzkHJlULyFg6HvDzoL3aQmugDX/g+L RBslQdaPUTTUDdoSjmlk8WuxmGCiZ31+ms5HJ1IQVxwO1+hdV5M7L7jBkA3I4M/DshJ3 o6szjoWaqquFR09Z9fPaQ/oTNa+wg1uO+i84vkUimTiMuVH4NqxsqWutC9IRSmSfWIL5 3N9lq5KXnYvwsYCxicq7JG/RfUyQ+O2jaa4iEBxVB0bRNdJormc5Slmuh1QbWHBuEsvD H99TYvilFF6+KNjcxRHOFTiDP5mmXkwH6L3RnELtor3rLKLzwmMSuGVvATUV+4W1oinb 5FMQ== MIME-Version: 1.0 X-Received: by 10.224.16.72 with SMTP id n8mr9356715qaa.76.1390462554397; Wed, 22 Jan 2014 23:35:54 -0800 (PST) Received: by 10.224.52.8 with HTTP; Wed, 22 Jan 2014 23:35:54 -0800 (PST) In-Reply-To: <0F26E4E1-5D75-413E-B92B-AA7092B87D89@FreeBSD.org> References: <201401200159.s0K1xa5X012123@svn.freebsd.org> <1536225.gsjt6oXMt2@pippin.baldwin.cx> <0F26E4E1-5D75-413E-B92B-AA7092B87D89@FreeBSD.org> Date: Wed, 22 Jan 2014 23:35:54 -0800 Message-ID: Subject: Re: svn commit: r260898 - head/sys/kern From: Adrian Chadd To: Rui Paulo Content-Type: text/plain; charset=ISO-8859-1 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , Neel Natu , John Baldwin X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 07:35:55 -0000 On 22 January 2014 20:34, Rui Paulo wrote: > On 22 Jan 2014, at 20:05, Adrian Chadd wrote: > >> .. Make it be an offset into the table rather than a pointer, then we can do dirty rcu style hacks to just replace and grow the table as we need more memory. >> >> Don't we have a standard way to pull memory from the top of the physmem area early on for allocations like this? > > Perhaps a bit overkill for this problem? We already have platform dependent ways of doing this in the VM init path for exactly this - structures needed early at boot. It may be overkill but it may also be the cleanest way to allow boot-time tuned things based on early available information, which we may want to do when it's time to boot a single kernel on a 2-core atom board or a 256 core intel/amd server board. -a