<div dir="ltr"><div>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 <br>"/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 drm/kernel module bug ..<br></div><div><br></div><div>Thanks<br><br></div><div>Ratin<br></div> <br>lsof | grep drm | wc -l<br>Decoder 6111 6125 root DEL REG 0,5 322698 /drm mm object<br>Decoder 6111 6125 root DEL REG 0,5 322697 /drm mm object<br>Decoder 6111 6126 root DEL REG 0,5 322699 /drm mm object<br>Decoder 6111 6126 root DEL REG 0,5 322696 /drm mm object<br>Decoder 6111 6126 root DEL REG 0,5 322695 /drm mm object<br>Decoder 6111 6126 root mem REG 8,2 191556 193579 /usr/local/lib/libdrm_radeon.<div>so.1.0.1<br>Decoder 6111 6126 root mem REG 8,2 434985 193645 /usr/local/lib/libdrm_intel.so.1.0.0<br>Decoder 6111 6126 root mem REG 8,2 96398 193585 /usr/local/lib/libdrm_nouveau.so.2.0.0<br>Decoder 6111 6126 root mem REG 8,2 204541 193527 /usr/local/lib/libdrm.so.2.4.0<br>Decoder 6111 6126 root DEL REG 0,5 322698 /drm mm object<br>Decoder 6111 6126 root DEL REG 0,5 322697 /drm mm object<br>Decoder 6111 6127 root DEL REG 0,5 322699 /drm mm object<br>Decoder 6111 6127 root DEL REG 0,5 322696 /drm mm object<br>Decoder 6111 6127 root DEL REG 0,5 322695 /drm mm object<br>Decoder 6111 6127 root mem REG 8,2 191556 193579 /usr/local/lib/libdrm_radeon.so.1.0.1<br>Decoder 6111 6127 root mem REG 8,2 434985 193645 /usr/local/lib/libdrm_intel.so.1.0.0<br>Decoder 6111 6127 root mem REG 8,2 96398 193585 /usr/local/lib/libdrm_nouveau.so.2.0.0<br>Decoder 6111 6127 root mem REG 8,2 204541 193527 /usr/local/lib/libdrm.so.2.4.0<br>Decoder 6111 6127 root DEL REG 0,5 322698 /drm mm object<br>Decoder 6111 6127 root DEL REG 0,5 322697 /drm mm object<br>Decoder 6111 6128 root DEL REG 0,5 322699 /drm mm object<br>Decoder 6111 6128 root DEL REG 0,5 322696 /drm mm object<br>Decoder 6111 6128 root DEL REG 0,5 322695 /drm mm object<br>Decoder 6111 6128 root mem REG 8,2 191556 193579 /usr/local/lib/libdrm_radeon.so.1.0.1<br>Decoder 6111 6128 root mem REG 8,2 434985 193645 /usr/local/lib/libdrm_intel.so.1.0.0<br>Decoder 6111 6128 root mem REG 8,2 96398 193585 /usr/local/lib/libdrm_nouveau.so.2.0.0<br>Decoder 6111 6128 root mem REG 8,2 204541 193527 /usr/local/lib/libdrm.so.2.4.0<br>Decoder 6111 6128 root DEL REG 0,5 322698 /drm mm object<br>Decoder 6111 6128 root DEL REG 0,5 322697 /drm mm object<br>Decoder 6111 6129 root DEL REG 0,5 322699 /drm mm object<br>Decoder 6111 6129 root DEL REG 0,5 322696 /drm mm object<br>Decoder 6111 6129 root DEL REG 0,5 322695 /drm mm object<br>Decoder 6111 6129 root mem REG 8,2 191556 193579 /usr/local/lib/libdrm_</div></div>