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

2022-12-20 Thread Daniel Kiper
On Thu, Dec 15, 2022 at 07:19:25PM +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 v2 2/2] mm: Preallocate some space when adding new regions

2022-12-15 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