mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 15:46:53 +00:00
851216d61a
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Axtens <dja@axtens.net>
|
|
Date: Tue, 20 Sep 2022 00:30:30 +1000
|
|
Subject: [PATCH] efi: Increase default memory allocation to 32 MiB
|
|
|
|
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>
|
|
(cherry picked from commit 75e38e86e7d9202f050b093f20500d9ad4c6dad9)
|
|
---
|
|
grub-core/kern/efi/mm.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c
|
|
index 016ba6cf2f..b27e966e1f 100644
|
|
--- a/grub-core/kern/efi/mm.c
|
|
+++ b/grub-core/kern/efi/mm.c
|
|
@@ -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;
|