All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d
@ 2022-09-12 17:49 Zhang Boyang
  2022-09-12 17:49 ` [PATCH v2 1/1] mm: Better handling of adding new regions Zhang Boyang
  2022-09-13  3:16 ` [PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d Gary Lin
  0 siblings, 2 replies; 8+ messages in thread
From: Zhang Boyang @ 2022-09-12 17:49 UTC (permalink / raw)
  To: grub-devel
  Cc: jim945, glin, dkiper, dja, ps, droidbittin, heinrich.schuchardt,
	langner.marcel, marcan

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 





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-09  9:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12 17:49 [PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d Zhang Boyang
2022-09-12 17:49 ` [PATCH v2 1/1] mm: Better handling of adding new regions Zhang Boyang
2022-09-14 19:00   ` jim945
2022-09-25 13:59   ` Patrick Steinhardt
2022-10-06 13:07     ` Daniel Kiper
2022-10-09  9:17       ` jim945
2022-09-13  3:16 ` [PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d Gary Lin
2022-09-13  6:31   ` Gary Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.