Re: [PATCH v3 1/2] mm: Adjust new region size to take management overhead into account

2023-01-14 Thread Zhang Boyang
Hi, On 2023/1/12 21:52, Daniel Kiper wrote: On Thu, Dec 22, 2022 at 05:18:23PM +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, the size passed to it doesn't take region management

Re: [PATCH v3 1/2] mm: Adjust new region size to take management overhead into account

2023-01-12 Thread Daniel Kiper
On Thu, Dec 22, 2022 at 05:18:23PM +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, the size passed to it doesn't take region management overhead > into account. Adding a memory

[PATCH v3 1/2] mm: Adjust new region size to take management overhead into account

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, the size passed to it doesn't take region management overhead into account. Adding a memory area of "size" bytes may result in a heap region of less than "size" b