[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d
From: |
Zhang Boyang |
Subject: |
[PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d |
Date: |
Tue, 13 Sep 2022 01:49:51 +0800 |
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
- [PATCH v2 0/1] Fix slow loading problem introduced by 887f98f0d,
Zhang Boyang <=