Blame SOURCES/0307-efi-Increase-default-memory-allocation-to-32-MiB.patch

fd0330
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
fd0330
From: Daniel Axtens <dja@axtens.net>
fd0330
Date: Tue, 20 Sep 2022 00:30:30 +1000
fd0330
Subject: [PATCH] efi: Increase default memory allocation to 32 MiB
fd0330
fd0330
We have multiple reports of things being slower with a 1 MiB initial static
fd0330
allocation, and a report (more difficult to nail down) of a boot failure
fd0330
as a result of the smaller initial allocation.
fd0330
fd0330
Make the initial memory allocation 32 MiB.
fd0330
fd0330
Signed-off-by: Daniel Axtens <dja@axtens.net>
fd0330
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
fd0330
(cherry picked from commit 75e38e86e7d9202f050b093f20500d9ad4c6dad9)
fd0330
---
fd0330
 grub-core/kern/efi/mm.c | 2 +-
fd0330
 1 file changed, 1 insertion(+), 1 deletion(-)
fd0330
fd0330
diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c
fd0330
index 016ba6cf2f..b27e966e1f 100644
fd0330
--- a/grub-core/kern/efi/mm.c
fd0330
+++ b/grub-core/kern/efi/mm.c
fd0330
@@ -39,7 +39,7 @@
fd0330
 #define MEMORY_MAP_SIZE	0x3000
fd0330
 
fd0330
 /* The default heap size for GRUB itself in bytes.  */
fd0330
-#define DEFAULT_HEAP_SIZE	0x100000
fd0330
+#define DEFAULT_HEAP_SIZE	0x2000000
fd0330
 
fd0330
 static void *finish_mmap_buf = 0;
fd0330
 static grub_efi_uintn_t finish_mmap_size = 0;