git: e474c385776e - stable/13 - kboot: use 128MB for the heap area, ZFS needs a lot of memory
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:14:17 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=e474c385776ed4c1a8a782b8b47db285a288a4ae
commit e474c385776ed4c1a8a782b8b47db285a288a4ae
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-12-23 18:26:32 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:45 +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
(cherry picked from commit 4dd3e76881ad025170b0cfb5455680b3c89fe263)
---
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;