From 4dd3e76881ad025170b0cfb5455680b3c89fe263 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 23 Dec 2022 11:26:32 -0700 Subject: [PATCH] kboot: use 128MB for the heap area, ZFS needs a lot of memory ZFS uses a lot of memory. The old minimal allocations won't work when ZFS support is added. Most environments this will be used (or will liekly be used) have >> 256MB, 128MB should be safe everywhere and allow examination of a fair number of ZFS pools to boot from. Sponsored by: Netflix --- stand/kboot/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/kboot/main.c b/stand/kboot/main.c index 85453db50fa5..2e85121b7b12 100644 --- a/stand/kboot/main.c +++ b/stand/kboot/main.c @@ -150,7 +150,7 @@ int main(int argc, const char **argv) { void *heapbase; - const size_t heapsize = 15*1024*1024; + const size_t heapsize = 128*1024*1024; const char *bootdev; archsw.arch_getdev = kboot_getdev;