<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iMX6 GStreamer Memory Leak in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400425#M59087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;There are tools for avoiding file caching of a specific application like the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;SPAN&gt;pagecache-management (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://code.google.com/p/pagecache-mangagement/" rel="nofollow"&gt;https://code.google.com/p/pagecache-mangagement/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;This is an open source project NOT maintained and NOT supported by Freescale, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;which could anyway help in the intent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Yuri.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 05:36:38 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2015-09-29T05:36:38Z</dc:date>
    <item>
      <title>iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400421#M59083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to track down a memory leak in our system.&lt;/P&gt;&lt;P&gt;We have an iMX6 solo (512MB of RAM) that's intended to play video clips when the system is in "Idle" mode (not being used by a customer). We're currently playing a small video in a loop (.mov, less than 1MB in size, plays for less than 10 seconds) after a period of time when there is no touchscreen activity detected.&lt;/P&gt;&lt;P&gt;We're currently using Qt 5.5 (Enterprise) for our user interface as well as handling multimedia.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We noticed that if we let our video loop continuously for extended periods of time (&amp;gt; 24 hours) that, eventually, our system will crash because the 'OOM' kicks in and reports that there is not enough system memory.... it kills our application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to start a thread in our system that goes out (about once every 5 seconds) and captures all the information stored in '/proc/meminfo'. I could see that the memory was slowly leaking away over time. I could also see that "Commited_AS" continued to grow over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After combing through the community, I found several helpful suggestions but nothing that eliminates this memory leak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I have implemented in our system, as recommended within the community, is a thread that runs in the background that writes a "3" to '/proc/sys/vm/drop_caches'. This really only helped to prolong the inevitable. The system memory still appears to leak away but at a much lower rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported my log file, graphed the free memory and captured it to share. Around the '33526' mark in this graph, the 'OOM' kicked in and killed our application. I thought this seemed strange until I saw how high 'Commited_AS' had climbed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Qt_55_Small_Movie_memfree.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55740iD6DDA89CE628F0F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qt_55_Small_Movie_memfree.jpg" alt="Qt_55_Small_Movie_memfree.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Qt_55_Small_Movie_committed_as.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55785i89F5D3DD59F39F25/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qt_55_Small_Movie_committed_as.jpg" alt="Qt_55_Small_Movie_committed_as.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anybody offer any advice on what I can change in the system to eliminate this memory leak error?&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 18:47:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400421#M59083</guid>
      <dc:creator>grim</dc:creator>
      <dc:date>2015-09-22T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400422#M59084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt; When playing the video for a long time, allocation of contiguous memory may fail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;(memory fragmentation).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; To play video when the system memory is low, run the command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;$ echo 1 &amp;gt;/proc/sys/vm/lowmem_reserve_ratio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; It protects the DMA zone and avoids memory allocation errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Also, from the next thread :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;"[i.MX6]memory leak of Gstreamer"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="333860" data-objecttype="1" href="https://community.freescale.com/thread/333860"&gt;https://community.freescale.com/thread/333860&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;"... we try to perform&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;$ echo 1 &amp;gt;/proc/sys/vm/drop_caches&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;by the script of while [1] in playing video. The memory will not rise continuously&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;and can play video normally."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 02:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400422#M59084</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-09-23T02:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400423#M59085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuri,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I will modify my test code to accommodate your suggestions, test it and post a follow-up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400423#M59085</guid>
      <dc:creator>grim</dc:creator>
      <dc:date>2015-09-23T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400424#M59086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm seeing the same results.&lt;/P&gt;&lt;P&gt;Ran the test for just under 24 hours and lost about 50MB of RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="M821_Qt_55_video.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57980iF9521233EE36EB30/image-size/large?v=v2&amp;amp;px=999" role="button" title="M821_Qt_55_video.jpg" alt="M821_Qt_55_video.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know I'm not the only person who's ran into this problem.&lt;/P&gt;&lt;P&gt;Does anybody have a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400424#M59086</guid>
      <dc:creator>grim</dc:creator>
      <dc:date>2015-09-24T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400425#M59087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;There are tools for avoiding file caching of a specific application like the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;SPAN&gt;pagecache-management (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://code.google.com/p/pagecache-mangagement/" rel="nofollow"&gt;https://code.google.com/p/pagecache-mangagement/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;This is an open source project NOT maintained and NOT supported by Freescale, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;which could anyway help in the intent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Yuri.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 05:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400425#M59087</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-09-29T05:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400426#M59088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Yuri.&lt;/P&gt;&lt;P&gt;I will investigate this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 19:25:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400426#M59088</guid>
      <dc:creator>grim</dc:creator>
      <dc:date>2015-09-29T19:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 GStreamer Memory Leak</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400427#M59089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuri,&lt;/P&gt;&lt;P&gt;Thanks for your attention to this.&lt;/P&gt;&lt;P&gt;It turns out that the problem resides within the BSP that our vendor was providing.&lt;/P&gt;&lt;P&gt;We've been doing testing with Freescale's latest BSP and are seeing MUCH better results now.&lt;/P&gt;&lt;P&gt;We're going to work with the vendor to integrate the "latest and greatest" BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 16:13:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-GStreamer-Memory-Leak/m-p/400427#M59089</guid>
      <dc:creator>grim</dc:creator>
      <dc:date>2015-10-28T16:13:56Z</dc:date>
    </item>
  </channel>
</rss>

