This repository has been archived by the owner on May 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgpkg: grub 2:2.06.r322.gd9b4638c5-4: work around boot delay (FS#75673)
https://bugs.archlinux.org/task/75673 https://lists.gnu.org/archive/html/grub-devel/2022-09/msg00005.html git-svn-id: file:///srv/repos/svn-packages/svn@454907 eb2447ed-0c53-47e4-bac8-5bc4a241df78
- Loading branch information
eworm
authored and
svntogit
committed
Sep 2, 2022
1 parent
fc4b152
commit d876a15
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From faedc1669cb4862020b572fdd013fbe7f5fb925c Mon Sep 17 00:00:00 2001 | ||
From: Christian Hesse <mail@eworm.de> | ||
Date: Fri, 2 Sep 2022 13:37:51 +0200 | ||
Subject: [PATCH 1/1] kern/efi/mm: increase default heap size | ||
|
||
The new dynamic memory allocation slows down grub startup. Try to | ||
fix / work around by increasing the default heap size. | ||
|
||
Signed-off-by: Christian Hesse <mail@eworm.de> | ||
--- | ||
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 d290c9a76..598e6b6a2 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 0x1000000 | ||
|
||
static void *finish_mmap_buf = 0; | ||
static grub_efi_uintn_t finish_mmap_size = 0; | ||
-- | ||
2.37.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters