[Libva] [PATCH] va_trace.c : Fix VAIQMatrixBufferHEVC tracing

Ratin ratin3 at gmail.com
Thu Sep 3 10:30:11 PDT 2015


Hi I have written an app to use libva via hwaccel compnent of ffmpeg.
Regardless of ffmpeg involvement, just opening the HW context and closing
it makes my system open up a bunch of
"/drm mm object" shown in lsof output below. The application needs to
utilize the HW decoding and close it frequently. But with all the proper
clean-up process in place for vaapi, the drm objects pile up. After running
the app for an hour, the maximum limit of open file for the system exceeds
and the app needs to shut down and then its ok again. I am just wondering
if anybody saw this, it seems to be a kernel module bug ..

Thanks

Ratin

lsof | grep drm | wc -l
Decoder 6111 6125             root  DEL       REG
0,5              322698 /drm mm object
Decoder 6111 6125             root  DEL       REG
0,5              322697 /drm mm object
Decoder 6111 6126             root  DEL       REG
0,5              322699 /drm mm object
Decoder 6111 6126             root  DEL       REG
0,5              322696 /drm mm object
Decoder 6111 6126             root  DEL       REG
0,5              322695 /drm mm object
Decoder 6111 6126             root  mem       REG                8,2
191556     193579 /usr/local/lib/libdrm_radeon.so.1.0.1
Decoder 6111 6126             root  mem       REG                8,2
434985     193645 /usr/local/lib/libdrm_intel.so.1.0.0
Decoder 6111 6126             root  mem       REG                8,2
96398     193585 /usr/local/lib/libdrm_nouveau.so.2.0.0
Decoder 6111 6126             root  mem       REG                8,2
204541     193527 /usr/local/lib/libdrm.so.2.4.0
Decoder 6111 6126             root  DEL       REG
0,5              322698 /drm mm object
Decoder 6111 6126             root  DEL       REG
0,5              322697 /drm mm object
Decoder 6111 6127             root  DEL       REG
0,5              322699 /drm mm object
Decoder 6111 6127             root  DEL       REG
0,5              322696 /drm mm object
Decoder 6111 6127             root  DEL       REG
0,5              322695 /drm mm object
Decoder 6111 6127             root  mem       REG                8,2
191556     193579 /usr/local/lib/libdrm_radeon.so.1.0.1
Decoder 6111 6127             root  mem       REG                8,2
434985     193645 /usr/local/lib/libdrm_intel.so.1.0.0
Decoder 6111 6127             root  mem       REG                8,2
96398     193585 /usr/local/lib/libdrm_nouveau.so.2.0.0
Decoder 6111 6127             root  mem       REG                8,2
204541     193527 /usr/local/lib/libdrm.so.2.4.0
Decoder 6111 6127             root  DEL       REG
0,5              322698 /drm mm object
Decoder 6111 6127             root  DEL       REG
0,5              322697 /drm mm object
Decoder 6111 6128             root  DEL       REG
0,5              322699 /drm mm object
Decoder 6111 6128             root  DEL       REG
0,5              322696 /drm mm object
Decoder 6111 6128             root  DEL       REG
0,5              322695 /drm mm object
Decoder 6111 6128             root  mem       REG                8,2
191556     193579 /usr/local/lib/libdrm_radeon.so.1.0.1
Decoder 6111 6128             root  mem       REG                8,2
434985     193645 /usr/local/lib/libdrm_intel.so.1.0.0
Decoder 6111 6128             root  mem       REG                8,2
96398     193585 /usr/local/lib/libdrm_nouveau.so.2.0.0
Decoder 6111 6128             root  mem       REG                8,2
204541     193527 /usr/local/lib/libdrm.so.2.4.0
Decoder 6111 6128             root  DEL       REG
0,5              322698 /drm mm object
Decoder 6111 6128             root  DEL       REG
0,5              322697 /drm mm object
Decoder 6111 6129             root  DEL       REG
0,5              322699 /drm mm object
Decoder 6111 6129             root  DEL       REG
0,5              322696 /drm mm object
Decoder 6111 6129             root  DEL       REG
0,5              322695 /drm mm object
Decoder 6111 6129             root  mem       REG                8,2
191556     193579 /usr/local/lib/libdrm_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20150903/36aef9cb/attachment.html>


More information about the Libva mailing list