<?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>i.MX ProcessorsのトピックRe: i.MX6Q: VPU memory allocation &amp;quot;fragmentation&amp;quot; error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268867#M28516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ieio,&lt;/P&gt;&lt;P&gt;Are you sure the system is more stable with the patch?&lt;/P&gt;&lt;P&gt;I've changed the sabrelite file and now the system crash when I try to run more than 2 1080 streams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of memory: Kill process 5852 (unity-2d-launch) score 45 or sacrifice child&lt;/P&gt;&lt;P&gt;Killed process 5852 (unity-2d-launch) total-vm:171452kB, anon-rss:15604kB, file-rss:19252kB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the patch the VPU was failing to allocate Physical memory and the pipeline fails without killing the system?!!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 10:38:12 GMT</pubDate>
    <dc:creator>Tarek</dc:creator>
    <dc:date>2013-05-09T10:38:12Z</dc:date>
    <item>
      <title>i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268842#M28491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on Nitrogen board, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BSP version L3.0.35_1.1.0_121218_source, codecs version IMX_MMCODEC_3.0.5_Bundle and LTIB build.&amp;nbsp; The application is surveillance system which displays up to 16 cameras&amp;nbsp; on HDMI screen. There is no problem when I first bring up the application in the 16 way mode. All the cameras are displayed fine. When I try to switch to a different set of 16 cameras by shutting down all streams and starting new connections "new Gstreamer pipelines" I get the following &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; color: #0000ff;"&gt;ERROR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; from some streams. The error is due to VPU trying to allocate memory but fails to do so. I'm sure there is enough memory to handle the application requirement because the first time it works without problem. My guess it's fragmentation problem due to the nature of dynamically allocating&amp;nbsp; and freeing resources.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 12px; background-color: #f8f8f8; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Gstreamer pipeline&lt;/SPAN&gt;: &lt;STRONG&gt;appsrc -&amp;gt; typefinder -&amp;gt; vpudec -&amp;gt; mfw_isink&lt;/STRONG&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 12px; background-color: #f8f8f8; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Is there any VPU garbage collection mechanism to avoid this problem? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #f8f8f8; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;console: page allocation failure: order:11, mode:0xd1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;800477f4&amp;gt;] (unwind_backtrace+0x0/0xf8) from [&amp;lt;800be9a0&amp;gt;] (warn_alloc_failed+0xc8/0x100)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;800be9a0&amp;gt;] (warn_alloc_failed+0xc8/0x100) from [&amp;lt;800c0ed8&amp;gt;] (__alloc_pages_nodemask+0x4c8/0x6cc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;800c0ed8&amp;gt;] (__alloc_pages_nodemask+0x4c8/0x6cc) from [&amp;lt;8004a760&amp;gt;] (__dma_alloc+0xa4/0x300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;8004a760&amp;gt;] (__dma_alloc+0xa4/0x300) from [&amp;lt;8004af98&amp;gt;] (dma_alloc_coherent+0x54/0x60)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;8004af98&amp;gt;] (dma_alloc_coherent+0x54/0x60) from [&amp;lt;803a0964&amp;gt;] (vpu_alloc_dma_buffer+0x2c/0x54)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;803a0964&amp;gt;] (vpu_alloc_dma_buffer+0x2c/0x54) from [&amp;lt;803a0aac&amp;gt;] (vpu_ioctl+0x120/0x864)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;803a0aac&amp;gt;] (vpu_ioctl+0x120/0x864) from [&amp;lt;800ff51c&amp;gt;] (do_vfs_ioctl+0x80/0x54c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;800ff51c&amp;gt;] (do_vfs_ioctl+0x80/0x54c) from [&amp;lt;800ffa20&amp;gt;] (sys_ioctl+0x38/0x5c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;[&amp;lt;800ffa20&amp;gt;] (sys_ioctl+0x38/0x5c) from [&amp;lt;80040f80&amp;gt;] (ret_fast_syscall+0x0/0x30)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Mem-info:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DMA per-cpu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 0: hi:&amp;nbsp;&amp;nbsp; 90, btch:&amp;nbsp; 15 usd:&amp;nbsp; 79&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 1: hi:&amp;nbsp;&amp;nbsp; 90, btch:&amp;nbsp; 15 usd:&amp;nbsp; 75&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 2: hi:&amp;nbsp;&amp;nbsp; 90, btch:&amp;nbsp; 15 usd:&amp;nbsp; 84&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 3: hi:&amp;nbsp;&amp;nbsp; 90, btch:&amp;nbsp; 15 usd:&amp;nbsp; 83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Normal per-cpu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 0: hi:&amp;nbsp; 186, btch:&amp;nbsp; 31 usd:&amp;nbsp; 23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 1: hi:&amp;nbsp; 186, btch:&amp;nbsp; 31 usd: 170&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 2: hi:&amp;nbsp; 186, btch:&amp;nbsp; 31 usd: 148&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 3: hi:&amp;nbsp; 186, btch:&amp;nbsp; 31 usd:&amp;nbsp; 78&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;active_anon:14250 inactive_anon:16 isolated_anon:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; active_file:936 inactive_file:8191 isolated_file:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; unevictable:0 dirty:0 writeback:0 unstable:12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; free:172332 slab_reclaimable:339 slab_unreclaimable:1799&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; mapped:2711 shmem:17 pagetables:192 bounce:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DMA free:78980kB min:780kB low:972kB high:1168kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:186944kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;lowmem_reserve[]: 0 705 705 705&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Normal free:610348kB min:3028kB low:3784kB high:4540kB active_anon:57000kB inactive_anon:64kB active_file:3744kB inactive_file:32764kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:722368kB mlocked:0kB dirty:0kB writeback:0kB mapped:10844kB shmem:68kB slab_reclaimable:1356kB slab_unreclaimable:7196kB kernel_stack:1024kB pagetables:768kB unstable:48kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;lowmem_reserve[]: 0 0 0 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DMA: 103*4kB 85*8kB 86*16kB 61*32kB 37*64kB 6*128kB 1*256kB 3*512kB 10*1024kB 9*2048kB 10*4096kB 0*8192kB 0*16384kB 0*32768kB = 78980kB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Normal: 3*4kB 4*8kB 11*16kB 26*32kB 18*64kB 5*128kB 5*256kB 2*512kB 1*1024kB 1*2048kB 1*4096kB 3*8192kB 3*16384kB 16*32768kB = 610332kB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;9144 total pagecache pages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;0 pages in swap cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Swap cache stats: add 0, delete 0, find 0/0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Free swap&amp;nbsp; = 0kB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Total swap = 0kB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;262144 pages of RAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;173240 free pages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;37873 reserved pages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;1116 slab pages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;4788 pages shared&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;0 pages swap cached&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Physical memory allocation error!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Physical memory allocation error!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 10:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268842#M28491</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-02-22T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268843#M28492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you turn your application off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 14:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268843#M28492</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2013-02-26T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268844#M28493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daiane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not turning off the application. I'm terminating the gstreamer threads&lt;/P&gt;&lt;P&gt;and restarting new ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_main_loop_quit (ctx-&amp;gt;loop);&lt;/P&gt;&lt;P&gt;gst_element_set_state (ctx-&amp;gt;pipeline, GST_STATE_NULL);&lt;/P&gt;&lt;P&gt;gst_object_unref (GST_OBJECT (ctx-&amp;gt;pipeline));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct method of &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;termination?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 20:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268844#M28493</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-02-26T20:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268845#M28494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look on gplay source code, how it handle the quit command. Do you know where to find it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like your memory leakage has been caused by unclear termination of vpu stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 14:25:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268845#M28494</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2013-02-27T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268846#M28495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked at the gplay source code but couldn't spot anything obvious.&lt;/P&gt;&lt;P&gt;I guess gplay is terminating the application on a quite command but this is a different situation. I need to clear&amp;nbsp; gstreamer pipeline and reset the vpu without terminating the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to inform the VPU that the stream source "compression" will change? ie. a different stream will be used as the source with a different compression (changing the decoder from mpeg4 to H.264 on the fly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the gstreamer API for flushing the pipeline?&lt;/P&gt;&lt;P&gt;What is the gstreamer API for resetting the VPU decoder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 09:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268846#M28495</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-03-01T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268847#M28496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t know it. &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/karinavalencia"&gt;karinavalencia&lt;/A&gt; who could help with this VPU question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 14:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268847#M28496</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2013-03-01T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268848#M28497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you may want to go from PLAYING to PAUSED and then to NULL. That is the way I do it. I think there may be some things in Gstreamer that need to go through that transition for cleaning up resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could look at the gst-fls-plugins at the vpudec plug in and see in the source what the plugin does during those transitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am wondering what is your video encoding, resolution, and frame rate for you to do 16 at once? Are these live streams or from files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 16:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268848#M28497</guid>
      <dc:creator>timothybean</dc:creator>
      <dc:date>2013-03-07T16:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268849#M28498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;It's life stream using mpeg low res. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 17:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268849#M28498</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-03-07T17:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268850#M28499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am experiencing the exact same problem on a different board based on imx6s.&lt;/P&gt;&lt;P&gt;Have u solved this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 07:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268850#M28499</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2013-04-30T07:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268851#M28500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ieio,&lt;/P&gt;&lt;P&gt;No not really. I changed my strategy, now I'm allocating all the VPU decoders I may need at start up so I don't need to allocate/deallocate dynamically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268851#M28500</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-04-30T14:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268852#M28501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarek,&lt;/P&gt;&lt;P&gt;may I ask how many VPU decoders are u using? Is each VPU decoder used just once in the pipeline or dynamically linked to several pipeline? I tried to use a limited number or VPU decoders, but I experienced problems dynamically changing the pipeline. My input is an mpeg stream as well and I need to change stream dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:49:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268852#M28501</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2013-04-30T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268853#M28502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ieio,&lt;/P&gt;&lt;P&gt;I have 16 VPU decoders for 16 pipelines. So each pipeline is using one VPU. I couldn't changed dynamically so I did it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly are you changing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 15:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268853#M28502</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-04-30T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268854#M28503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarek,&lt;/P&gt;&lt;P&gt;I created a simple loop that switch from one stream to another, I unref a pipeline and I create a new one each time I switch from one flow to the another.&lt;/P&gt;&lt;P&gt;May I ask how u select which pipeline should be displayed in case you are running them concurrently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268854#M28503</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2013-04-30T16:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268855#M28504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daiane,&lt;/P&gt;&lt;P&gt;pls point me to the source code of gplay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:28:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268855#M28504</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2013-04-30T16:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268856#M28505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ieio,&lt;/P&gt;&lt;P&gt;You can set the pipeline state to NULL if you don't want it to display.&lt;/P&gt;&lt;P&gt;Also&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; you can set the pipeline state to NULL change the stream then set it to PLAYING. For example if your source is filesrc, set state to NULL change the filesrc property "location" to the new file then set it to PLAYING.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This way you can avoid the need for multiple pipelines. &lt;/P&gt;&lt;P&gt;In my case I had to have 16 pipelines because the program may display the 16 at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 19:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268856#M28505</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-04-30T19:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268857#M28506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Tarek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you create a simple test program that communicate directly with the VPU driver. you can based your program on the VPU_TEST that we supply together with our BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this simple program you can try to allocate and Free VPU Memory and see if you are getting error after many iterations. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 22:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268857#M28506</guid>
      <dc:creator>yossishukron</dc:creator>
      <dc:date>2013-05-01T22:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268858#M28507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tarek,&lt;/P&gt;&lt;P&gt;your suggestion works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you run some pipelines in parallel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now using just a pipeline and I put it in PAUSED and then NULL state and then I change the "location" property before PLAYING again.&lt;/P&gt;&lt;P&gt;Anyway if I run 2 instances of my code I run in the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;q1 and q2 are two processes running in parallel, and using different portions of screen.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;q1: page allocation failure: order:11, mode:0xd1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;8003d0dc&amp;gt;] (unwind_backtrace+0x0/0xfc) from [&amp;lt;800b5c5c&amp;gt;] (warn_alloc_failed+0x9c/0x118)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;800b5c5c&amp;gt;] (warn_alloc_failed+0x9c/0x118) from [&amp;lt;800b6948&amp;gt;] (__alloc_pages_nodemask+0x494/0x6ec)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;800b6948&amp;gt;] (__alloc_pages_nodemask+0x494/0x6ec) from [&amp;lt;80040434&amp;gt;] (__dma_alloc+0xd4/0x2fc)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;80040434&amp;gt;] (__dma_alloc+0xd4/0x2fc) from [&amp;lt;80040730&amp;gt;] (dma_alloc_coherent+0x54/0x60)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;80040730&amp;gt;] (dma_alloc_coherent+0x54/0x60) from [&amp;lt;803b3ba0&amp;gt;] (vpu_alloc_dma_buffer+0x2c/0x64)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;803b3ba0&amp;gt;] (vpu_alloc_dma_buffer+0x2c/0x64) from [&amp;lt;803b439c&amp;gt;] (vpu_ioctl+0x7c4/0x8c8)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;803b439c&amp;gt;] (vpu_ioctl+0x7c4/0x8c8) from [&amp;lt;800f69a0&amp;gt;] (do_vfs_ioctl+0x80/0x5e0)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;800f69a0&amp;gt;] (do_vfs_ioctl+0x80/0x5e0) from [&amp;lt;800f6f38&amp;gt;] (sys_ioctl+0x38/0x60)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&amp;lt;800f6f38&amp;gt;] (sys_ioctl+0x38/0x60) from [&amp;lt;8003769c&amp;gt;] (__sys_trace_return+0x0/0x24)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Mem-info:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DMA per-cpu:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 0: hi:&amp;nbsp;&amp;nbsp; 90, btch:&amp;nbsp; 15 usd:&amp;nbsp; 88&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Normal per-cpu:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CPU&amp;nbsp;&amp;nbsp;&amp;nbsp; 0: hi:&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, btch:&amp;nbsp;&amp;nbsp; 1 usd:&amp;nbsp;&amp;nbsp; 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;active_anon:1139 inactive_anon:9 isolated_anon:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; active_file:3 inactive_file:94 isolated_file:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; unevictable:0 dirty:0 writeback:0 unstable:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; free:46144 slab_reclaimable:274 slab_unreclaimable:1563&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; mapped:103 shmem:14 pagetables:57 bounce:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DMA free:160012kB min:1564kB low:1952kB high:2344kB active_anon:948kB inactive_anon:0kB active_file:0kB inactive_file:60kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:186944kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:60kB slab_unreclaimable:140kB kernel_stack:96kB pagetables:4kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:93 all_unreclaimable? yes&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;lowmem_reserve[]: 0 39 39 39&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Normal free:24368kB min:336kB low:420kB high:504kB active_anon:3608kB inactive_anon:36kB active_file:12kB inactive_file:484kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:40384kB mlocked:0kB dirty:0kB writeback:0kB mapped:432kB shmem:56kB slab_reclaimable:1036kB slab_unreclaimable:6128kB kernel_stack:328kB pagetables:224kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;lowmem_reserve[]: 0 0 0 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DMA: 191*4kB 182*8kB 158*16kB 102*32kB 89*64kB 55*128kB 32*256kB 16*512kB 22*1024kB 13*2048kB 16*4096kB 1*8192kB 0*16384kB 0*32768kB = 160012kB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Normal: 502*4kB 581*8kB 416*16kB 207*32kB 54*64kB 5*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 24032kB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;315 total pagecache pages&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0 pages in swap cache&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Swap cache stats: add 0, delete 0, find 0/0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Free swap&amp;nbsp; = 0kB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Total swap = 0kB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;65536 pages of RAM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;46031 free pages&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;11564 reserved pages&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;1283 slab pages&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;270 pages shared&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0 pages swap cached&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Physical memory allocation error!&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Physical memory allocation error!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have strace logs:&lt;/P&gt;&lt;P&gt;h&lt;EM&gt;wbuf allocator zone(614400) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) created&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) created&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [1;34mVS1 destroyed, force=0!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0mhwbuf allocator zone(462848) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[INFO]&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Info: i.MX6Q/D/S&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [1;32mvpudec versions :smileyhappy:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 669&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\tplugin: 3.0.5\n\33[0m", 26 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; plugin: 3.0.5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 26&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\twrapper: 1.0.28(VPUWRAPP"..., 80 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; wrapper: 1.0.28(VPUWRAPPER_ARM_LINUX Build on Apr 12 2013 17:28:04)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 80&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\tvpulib: 5.4.10\n\33[0m", 27 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; vpulib: 5.4.10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 27&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\tfirmware: 2.1.8.34588\n\33["..., 34 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; firmware: 2.1.8.34588&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 34&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7ec0a878) = -1 EPERM (Operation not permitted)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(2, "Unable to set the pipeline to th"..., 49Unable to set the pipeline to the playing state.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;) = 49&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "[ERR]\tmem allocation failed!\n", 29[ERR]&amp;nbsp;&amp;nbsp;&amp;nbsp; mem allocation failed!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;) = 29&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems that the ioctl VIDIOC_QUERYCAP or VT_OPENQRY fails.&lt;/P&gt;&lt;P&gt;When it works correctly the log is:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) created&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) created&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hwbuf allocator zone(614400) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [1;34mVS1 destroyed, force=0!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0mhwbuf allocator zone(462848) destroied.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[INFO]&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Info: i.MX6Q/D/S&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [1;32mvpudec versions :smileyhappy:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 669&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\tplugin: 3.0.5\n\33[0m", 26 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; plugin: 3.0.5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 26&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\twrapper: 1.0.28(VPUWRAPP"..., 80 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; wrapper: 1.0.28(VPUWRAPPER_ARM_LINUX Build on Apr 12 2013 17:28:04)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 80&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\tvpulib: 5.4.10\n\33[0m", 27 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; vpulib: 5.4.10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 27&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write(1, "\33[1;32m\tfirmware: 2.1.8.34588\n\33["..., 34 [1;32m&amp;nbsp;&amp;nbsp;&amp;nbsp; firmware: 2.1.8.34588&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [0m) = 34&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7ec0a878) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mmap2(NULL, 5236743, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0x19000) = 0x2b414000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SYS_288(0x1, 0x1, 0, 0x7ec0a860, 0x194c8) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fcntl64(8, F_SETFL, O_RDONLY|O_NONBLOCK) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;timer_delete(0x1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mq_notify(16, ptrace: umoven: Input/output error&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{...})&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 9&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mq_getsetattr(9, {mq_flags=O_RDONLY|0x10, mq_maxmsg=0, mq_msgsize=0, mq_curmsg=12}, ptrace: umoven: Input/output error&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{...}) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SYS_286(0x9, 0x7ec0a658, 0x7ec0a664, 0x10, 0x9) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;gettimeofday({265634, 766627}, NULL)&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SYS_290(0x9, 0x7ec0a600, 0x14, 0, 0x7ec0a614) = 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SYS_297(0x9, 0x7ec0a5e4, 0, 0, 0x7ec0a796) = 108&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SYS_297(0x9, 0x7ec0a5e4, 0, 0, 0x2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;close(9)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mq_notify(16, ptrace: umoven: Input/output error&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{...})&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 9&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mq_getsetattr(9, {mq_flags=O_RDONLY|0x10, mq_maxmsg=0, mq_msgsize=0, mq_curmsg=12}, ptrace: umoven: Input/output error&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{...}) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SYS_286(0x9, 0x7ec0a628, 0x7ec0a634, 0x10, 0x9) = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Yossi I think the interaction that fails with the VPU is &lt;/SPAN&gt;&lt;EM&gt;ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;where fd 3 is /dev/mxc_vpu&lt;/P&gt;&lt;P&gt;lrwx------&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64 Jan&amp;nbsp; 4 02:42 3 -&amp;gt; /dev/mxc_vpu&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 09:57:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268858#M28507</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2013-05-02T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268859#M28508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ieio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 32 concurrent pipelines but only 16 can be active at the same time.&lt;/P&gt;&lt;P&gt;Try first to use the gst-launch command line. run 2 or more pipelines at the same time and see if that's any good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 10:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268859#M28508</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-05-02T10:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268860#M28509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can run 4 pipelines at the same time using&amp;nbsp; gst-launch, but I do not stop them and I do not change the src property each 3 second.&lt;/P&gt;&lt;P&gt;Are u running the concurrent pipelines in the same process? are u using different threads?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268860#M28509</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2013-05-02T11:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q: VPU memory allocation "fragmentation" error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268861#M28510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it's related to threads/process. Try to increase the 3 seconds. Make it 3 minutes or so. I think it takes much more than 3 seconds to start a single stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-memory-allocation-quot-fragmentation-quot-error/m-p/268861#M28510</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-05-02T13:19:01Z</dc:date>
    </item>
  </channel>
</rss>

