Hi,

This patch should probably fix the slow loading problem introduced by
887f98f0db43 (mm: Allow dynamically requesting additional memory
regions).

Although I'm not against increasing default heap size, simply increasing
heap size may not fully fix the problem. I think the root cause is disk
caches are always invalidated when almost every malloc() after default
heap size is exhausted.

However, I havn't reproduced the problem, so I haven't tested my patch.
I would appreciate if someone can test this patch.

Changes in V2:
  Use GRUB_MM_HEAP_GROW constant instead of hardcoding 0x100000.
  Renamed "rsize" to "grow".
  Check "grow" against sanity limits.

Best Regards,
Zhang Boyang 




_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to