[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61148] cutmem not wokring on old machines
From: |
Alexey Kuznetsov |
Subject: |
[bug #61148] cutmem not wokring on old machines |
Date: |
Thu, 16 Sep 2021 02:55:55 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 |
Follow-up Comment #3, bug #61148 (project grub):
My guess was limit memory map returned by e820 by size of 20M manually. So, I
did patch grub source code with following:
diff --git a/grub-core/kern/i386/pc/mmap.old b/grub-core/kern/i386/pc/mmap.c
index c0c3c35..0eb76d9 100644
--- a/grub-core/kern/i386/pc/mmap.old
+++ b/grub-core/kern/i386/pc/mmap.c
@@ -134,6 +134,10 @@ grub_get_mmap_entry (struct grub_machine_mmap_entry
*entry,
else
entry->size = regs.ecx;
+ if (entry->addr == 0x0000000000100000) {
+ entry->len -= 0x1340000;
+ }
+
/* return the continuation value */
return regs.ebx;
}
But that did not succeed. Grub still works slowly. Does anyone know why kernel
with 'mem=2020M' argument works fast, and same memory map does not fix grub
'slow down' issue?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61148>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/