]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
efi: Increase default memory allocation to 32 MiB
authorDaniel Axtens <dja@axtens.net>
Mon, 19 Sep 2022 14:30:30 +0000 (00:30 +1000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 4 Oct 2022 15:06:25 +0000 (17:06 +0200)
We have multiple reports of things being slower with a 1 MiB initial static
allocation, and a report (more difficult to nail down) of a boot failure
as a result of the smaller initial allocation.

Make the initial memory allocation 32 MiB.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/efi/mm.c

index d290c9a76270420da3edea79f279750f2a76219d..3705b8b1b465d00ee519c4af5bed90e4d39672d0 100644 (file)
@@ -39,7 +39,7 @@
 #define MEMORY_MAP_SIZE        0x3000
 
 /* The default heap size for GRUB itself in bytes.  */
-#define DEFAULT_HEAP_SIZE      0x100000
+#define DEFAULT_HEAP_SIZE      0x2000000
 
 static void *finish_mmap_buf = 0;
 static grub_efi_uintn_t finish_mmap_size = 0;