[PATCH] procfs/dmabuf: Add /proc/<pid>/task/<tid>/dmabuf_fds

Christian König christian.koenig at amd.com
Fri Jan 29 14:22:06 UTC 2021


Am 29.01.21 um 15:17 schrieb Simon Ser:
> On Friday, January 29th, 2021 at 3:13 PM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
>
>>> Re-importing it adds quite a huge CPU overhead to both userspace as well
>>> as the kernel.
>> Perhaps, but so far it seems no-one has noticed the overhead, with Mesa
>> at least.
>>
>> I happily stand corrected.
> Note, all of this doesn't mean that compositors will stop keeping
> DMA-BUF FDs around. They may want to keep them open for other purposes
> like importing them into KMS or other EGL displays as needed.

Correct and that's a perfectly valid use case. Just re-importing it on 
every frame is something we should really try to avoid.

At least with debugging enabled it's massive overhead and maybe even 
performance penalty when we have to re-create device page tables all the 
time.

But thinking more about that it is possible that we short-cut this step 
as long as the original import was still referenced. Otherwise we 
probably would have noticed this much earlier.

Regards,
Christian.


More information about the dri-devel mailing list