Re: [PATCH v3 2/2] mm: Preallocate some space when adding new regions

2023-01-12 Thread Daniel Kiper
On Thu, Dec 22, 2022 at 05:18:24PM +0800, Zhang Boyang wrote: > When grub_memalign() encounters out-of-memory, it will try > grub_mm_add_region_fn() to request more memory from system firmware. > However, it doesn't preallocate memory space for future allocation > requests. In extreme cases, it req

[PATCH v3 2/2] mm: Preallocate some space when adding new regions

2022-12-22 Thread Zhang Boyang
When grub_memalign() encounters out-of-memory, it will try grub_mm_add_region_fn() to request more memory from system firmware. However, it doesn't preallocate memory space for future allocation requests. In extreme cases, it requires one call to grub_mm_add_region_fn() for each memory allocation r