Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 23:35:54 -0800
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        Rui Paulo <rpaulo@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Neel Natu <neel@freebsd.org>, John Baldwin <jhb@freebsd.org>
Subject:   Re: svn commit: r260898 - head/sys/kern
Message-ID:  <CAJ-Vmok0J9cbjEzsNDD1nVx22rssp34oSE6H7aomMyYkwbSRZg@mail.gmail.com>
In-Reply-To: <0F26E4E1-5D75-413E-B92B-AA7092B87D89@FreeBSD.org>
References:  <201401200159.s0K1xa5X012123@svn.freebsd.org> <EA6A69A5-0620-4BF9-9871-268C416D2F58@felyko.com> <1536225.gsjt6oXMt2@pippin.baldwin.cx> <CAJ-VmokgEr1THSfusi3h_3rKaQw4K=MxCOXhFWSB--Lj%2BOB6%2Bw@mail.gmail.com> <0F26E4E1-5D75-413E-B92B-AA7092B87D89@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22 January 2014 20:34, Rui Paulo <rpaulo@freebsd.org> wrote:
> On 22 Jan 2014, at 20:05, Adrian Chadd <adrian.chadd@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmok0J9cbjEzsNDD1nVx22rssp34oSE6H7aomMyYkwbSRZg>