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/


Reply via email to