git: 4dd3e76881ad - main - kboot: use 128MB for the heap area, ZFS needs a lot of memory
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Jan 2023 20:30:24 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4dd3e76881ad025170b0cfb5455680b3c89fe263 commit 4dd3e76881ad025170b0cfb5455680b3c89fe263 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-12-23 18:26:32 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-07 20:27:49 +0000 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;