Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 23:17:47 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        Devin Teske <dteske@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader sy...
Message-ID:  <5715A35B.9070602@freebsd.org>
In-Reply-To: <F9B9BE55-60CE-4592-9897-11F3567F8174@freebsd.org>
References:  <201604182309.u3IN9MC6047480@repo.freebsd.org> <CAJ-Vmo=WX8xwnuvbPJMib3BMuVKjQMkKt1qXkx=TPH5wZYPM1A@mail.gmail.com> <57157108.6090500@freebsd.org> <84FB3FCC-4779-4ED1-B0A6-142C90D08EEF@freebsd.org> <5715848F.7020805@FreeBSD.org> <CE15B9D5-C830-427B-9656-FFCBDDD25B9C@freebsd.org> <57158BF3.3060605@freebsd.org> <F9B9BE55-60CE-4592-9897-11F3567F8174@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-04-18 22:59, Devin Teske wrote:
> 
>> On Apr 18, 2016, at 6:37 PM, Allan Jude <allanjude@FreeBSD.org
>> <mailto:allanjude@FreeBSD.org>> wrote:
>>
>> On 2016-04-18 21:32, Devin Teske wrote:
>>>
>>>> On Apr 18, 2016, at 6:06 PM, Pedro Giffuni <pfg@FreeBSD.org
>>>> <mailto:pfg@FreeBSD.org>> wrote:
>>>>
>>>>
>>>>
>>>> On 04/18/16 19:30, Devin Teske wrote:
>>>>>
>>>>>
>>>>>> On Apr 18, 2016, at 4:43 PM, Allan Jude <allanjude@FreeBSD.org
>>>>>> <mailto:allanjude@FreeBSD.org>
>>>>>> <mailto:allanjude@FreeBSD.org>> wrote:
>>>>>>
>>>>>> On 2016-04-18 19:36, Adrian Chadd wrote:
>>>>>>> Someone pointed out how this bloats out memory requirement in loader.
>>>>>>>
>>>>>>> Did anyone check that?
>>>>>>>
>>>>>>> -adrian
>>>>>>>
>>>>>>
>>>>>> I tested down to 128mb of ram in QEMU, booted from the installer ISO,
>>>>>> did the install, and booted the installed system without issue.
>>>>>
>>>>> Hmm. Would be nice if we could claim success under 64MB too.
>>>>> If you get the chance.
>>>>> How low can it go?
>>>>
>>>> FWIW, The code review comments state:
>>>>
>>>> <quote>
>>>>
>>>> BTW: as mentioned in very beginning of this project, I'm reserving
>>>> fairly large chunk of memory (64MB) for loader and using same amount
>>>> for both BIOS/UEFI variants, default in freebsd is 3MB, eventually
>>>> this should be reviewed, but currently it will affect very small setups.
>>>>
>>>> </quote>
>>>>
>>>> I still think it's pretty cool, thanks to everyone involved.
>>>>
>>>
>>> Does anyone know what the original memory reservation amount was
>>> before it was upped to 64MB?
>>>
>>
>> It was 3MB
>>
> 
> Next [possibly] dumb question(s).
> 
> Is it easily tunable?
> If not, why not?
> What happens when we want to bump it further in the future?
> -- 
> Devin

So, the size of the heap, is a #define in
sys/boot/{i386/libi386,pc98/libpc98}/biosmem.c sys/boot/efi/libefi/libefi.c

It went from 3MB to 64MB

The size of the block cache is set in each of the respective loaders
with the call to bcache_init(). The size went from 16kb to 16mb.

-- 
Allan Jude



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