]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ubldr: Bump heap size from 512K to 1M
authorkevans <kevans@FreeBSD.org>
Wed, 14 Mar 2018 02:35:49 +0000 (02:35 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 14 Mar 2018 02:35:49 +0000 (02:35 +0000)
commit25d044a1b53c50df2d7f438174ea8c0b248b4608
tree0397b793ae68547baaa482b96b5221ea50f1a235
parent58c4dda2a8bcfb16651a2722008210b7d7468ac7
ubldr: Bump heap size from 512K to 1M

lualoader in itself only uses another ~200K, but there seems to be no reason
not to bump it a little higher to give us some more wiggle room.

With this, I can boot using a menu-enabled lualoader, no problem and
reasonably fast. Some heap usage datapoints from the review:

forthloader, no menus, kernel loaded:
heap base at 0x1203d5b0, top at 0x1208e000, used 330320

lualoader, no menus, kernel loaded:
heap base at 0x42050028, top at 0x420ab000, used 372696

lualoader, menus, kernel loaded:
heap base at 0x42050028, top at 0x420d5000, used 544728

Since then, the no menu case for lualoader should have decreased slightly as
I've made some changes to make sure that it no longer loads any of th emenu
bits with beastie disabled.

While here, split heap size out into a HEAP_SIZE macro.

Reviewed by: ian, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D14471
stand/uboot/common/main.c