Re: [PATCH] dma-buf: heaps: Set allocation orders for larger page sizes

From: John Stultz
Date: Tue Apr 15 2025 - 16:14:57 EST


On Tue, Apr 15, 2025 at 10:20 AM Juan Yescas <jyescas@xxxxxxxxxx> wrote:
>
> This change sets the allocation orders for the different page sizes
> (4k, 16k, 64k) based on PAGE_SHIFT. Before this change, the orders
> for large page sizes were calculated incorrectly, this caused system
> heap to allocate from 2% to 4% more memory on 16KiB page size kernels.
>
> This change was tested on 4k/16k page size kernels.
>
> Signed-off-by: Juan Yescas <jyescas@xxxxxxxxxx>

Seems reasonable to me.
Acked-by: John Stultz <jstultz@xxxxxxxxxx>

thanks
-john