[PATCH v2] dma-buf: Add DmaBufTotal counter in meminfo

Daniel Stone daniel at fooishbar.org
Tue Apr 20 13:34:58 UTC 2021


Hi Peter,

On Fri, 16 Apr 2021 at 13:34, Peter Enderborg <peter.enderborg at sony.com>
wrote:

> This adds a total used dma-buf memory. Details
> can be found in debugfs, however it is not for everyone
> and not always available. dma-buf are indirect allocated by
> userspace. So with this value we can monitor and detect
> userspace applications that have problems.
>

FWIW, this won't work super well for Android where gralloc is implemented
as a system service, so all graphics usage will instantly be accounted to
it.

Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210420/3b8b52dc/attachment.htm>


More information about the dri-devel mailing list