<?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 kmalloc'ed memory is slow in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198676#M10757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought maybe this related to the pressure of Kernel Normal Zone and High Memroy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User malloc is all allocate from Hign Zone, and it was NOT phycal continue.&lt;/P&gt;&lt;P&gt;But Kmalloc is allocate from Normal Zone, and it was Physical continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you maybe want to check:&lt;/P&gt;&lt;P&gt;1. what your memory free pages situation of each zone by /proc/zoneinfo&lt;/P&gt;&lt;P&gt;2. try the vmalloc in kernel, this can be compare to malloc in user space, kmalloc is physical continue, it's was very few 1M continue phy memory after kernel boot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 05:46:56 GMT</pubDate>
    <dc:creator>JasonZhang1z</dc:creator>
    <dc:date>2012-12-12T05:46:56Z</dc:date>
    <item>
      <title>iMX6 kmalloc'ed memory is slow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198674#M10755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0px 0px 1em; font-size: 14px; background-color: #ffffff; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;If we run completely in kernel and use kmalloc to allocate 1M buffers, it takes about 2ms to copy one to another. If run completely in userspace and use malloc to allocate 1M buffers, it takes about .5ms to copy them. We tried both standard memcpy and a NEON optimized copy for both, no difference. We changed the size of buffers and made no difference, always about 1/4 the speed.&lt;/P&gt;&lt;P style="margin: 0px 0px 1em; font-size: 14px; background-color: #ffffff; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;Why is kmalloc'ed memory slower then malloc'ed memory? Is the cache different?&lt;/P&gt;&lt;P style="margin: 0px 0px 1em; font-size: 14px; background-color: #ffffff; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;Running iMX6 DL Sabre SDP using latest Freescale ltib generated kernel (3.0.5.35-2039)&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>Wed, 05 Dec 2012 16:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198674#M10755</guid>
      <dc:creator>SteveBakke</dc:creator>
      <dc:date>2012-12-05T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kmalloc'ed memory is slow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198675#M10756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did find if I use mlock on the malloc'ed memory then the malloc'ed memory is the exact same speed as the kmalloc'ed memory.&amp;nbsp; Must be a cache flag somewhere.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Dec 2012 00:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198675#M10756</guid>
      <dc:creator>SteveBakke</dc:creator>
      <dc:date>2012-12-09T00:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kmalloc'ed memory is slow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198676#M10757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought maybe this related to the pressure of Kernel Normal Zone and High Memroy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User malloc is all allocate from Hign Zone, and it was NOT phycal continue.&lt;/P&gt;&lt;P&gt;But Kmalloc is allocate from Normal Zone, and it was Physical continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you maybe want to check:&lt;/P&gt;&lt;P&gt;1. what your memory free pages situation of each zone by /proc/zoneinfo&lt;/P&gt;&lt;P&gt;2. try the vmalloc in kernel, this can be compare to malloc in user space, kmalloc is physical continue, it's was very few 1M continue phy memory after kernel boot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 05:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198676#M10757</guid>
      <dc:creator>JasonZhang1z</dc:creator>
      <dc:date>2012-12-12T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kmalloc'ed memory is slow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198677#M10758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to say I had tried vmalloc(), exact same results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zone normal had 172K free, zone DMA had 42K free,&amp;nbsp; Both changed by ~1K pages when program was run, which was what they should have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 23:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kmalloc-ed-memory-is-slow/m-p/198677#M10758</guid>
      <dc:creator>SteveBakke</dc:creator>
      <dc:date>2012-12-13T23:38:41Z</dc:date>
    </item>
  </channel>
</rss>

