Re: [PATCH v3] dma-buf/heaps: system_heap: avoid too much allocation

From: T.J. Mercier
Date: Wed Apr 12 2023 - 12:51:02 EST


On Wed, Apr 12, 2023 at 4:38 AM Jaewon Kim <jaewon31.kim@xxxxxxxxxxx> wrote:

> Yes I think you're right. As a allocator, dma-buf system heap looks to be loose
> in memory allocation. Limiting dmabuf memory may be required. But I think there
> is no nice and reasonable way so far. And the dma-buf system heap is being
> widely used in Android mobile system. AFAIK the camera consumes huge memory
> through this dma-buf system heap. I actually even looked a huge size request
> over 2GB in one dma-buf request.
>
Hey can you point me to where you saw a request that big? That's a
non-buggy request?!