This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM5728
We are using Processor SDK 3.3 () on AM5728 EVM Board .
We have written custom encode application with reference of videenc2 test app). We are observing Memory leak issue with that. Below is sequence of API usage.
Allocation and Map:
omap_bo_new : Buffer allocation
omap_bo_map: Map to process address space
omap_bo_dmabuf: get dmabuf fd to share with remoteproc
dce_buf_lock: reserve buffer Mmrpc_Use
De-allocation and Free:
close: FD given by omap_bo_dmabuf
omap_bo_del: delete buffer object
But it seems these buffers are not being freed even after process exit. Please let us know if any step is missed in buffer free.
This issue can easily be reproduced with Gstreamer pipeline also.
while [ $a -lt 50000 ]
do for filename in *.264; do gst-launch-1.0 filesrc location="$filename" ! decodebin ! fakesink done a=`expr $a + 1`done
"free" command is used for memory statistics.
On board Boot:
root@am57xx-evm:~# root@am57xx-evm:~# free total used free shared buff/cache availableMem: 1868348 153452 1511280 28844 203616 1657036Swap: 0 0 0
After multiple G-streamer iteration
root@am57xx-evm:~# root@am57xx-evm:~# free total used free shared buff/cache availableMem: 1868348 155128 63060 28868 1650160 1655144Swap: 0 0 0root@am57xx-evm:~#
This doesn't seem to be application specific virtual memory leak issue, As linux frees all malloced memory at process exit. The memory statistics are checked after process exit with free command. This issue looks like related to omap_bo APIs or it's usage. Let us know if there's a way to figure out which driver is using this memory / getting more information.
Please let us know if more/ specific information is needed.
In reply to Biser Gatchev-XID:
Any update on this ?
In reply to Darshan Patel7:
Please make sure you read the forum guidelines first.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.