<?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: Memory copy with different distance between source and destination address have different performance in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317200#M42025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Perhaps, ARM caches influence here. Strictly speaking Your approach is not very optimal,&lt;BR /&gt;please refer to the following :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"&lt;A data-href="http://infocenter.arm.com/help/topic/com.arm.doc.faqs/ka13544.html" href="https://www.google.ru/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=2&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CCQQFjAB&amp;amp;url=http%3A%2F%2Finfocenter.arm.com%2Fhelp%2Ftopic%2Fcom.arm.doc.faqs%2Fka13544.html&amp;amp;ei=P7e7U52wPMX9ygP6h4K4DA&amp;amp;usg=AFQjCNHCuA_WlWhlF_fUTrEfcgjt1WiI-A&amp;amp;bvm=bv.70138588,d.bGQ" style="color: #660099; text-decoration: underline !important;" target="_blank"&gt;What is the fastest way to copy memory on a Cortex-A8?&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html"&gt;ARM Information Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 08 Jul 2014 09:23:07 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2014-07-08T09:23:07Z</dc:date>
    <item>
      <title>Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317197#M42022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Memory copy with different distance between source and destination address have different performance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, (pageid(src) - pageid(dst)) % 16 = M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If M == 0, the memory copy performance is the worst.&lt;/P&gt;&lt;P&gt;If M == 1 or M == 15, it is better.&lt;/P&gt;&lt;P&gt;If 2 &amp;lt;= M &amp;lt;= 14, it is best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Both src and dst memory have continuous physcial page.&lt;/P&gt;&lt;P&gt;2) Both src and dst are page aligned.&lt;/P&gt;&lt;P&gt;3) I am using i.MX6Q sabrelite (seems similar behavior in i.MX6Q sabresd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone tell me why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 06:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317197#M42022</guid>
      <dc:creator>fchai</dc:creator>
      <dc:date>2014-07-08T06:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317198#M42023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What memcpy function is used in the case ?&lt;BR /&gt;Are caches enabled / disbaled ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 06:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317198#M42023</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-07-08T06:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317199#M42024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is simple *dst++ = *src++;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 08:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317199#M42024</guid>
      <dc:creator>fchai</dc:creator>
      <dc:date>2014-07-08T08:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317200#M42025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Perhaps, ARM caches influence here. Strictly speaking Your approach is not very optimal,&lt;BR /&gt;please refer to the following :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"&lt;A data-href="http://infocenter.arm.com/help/topic/com.arm.doc.faqs/ka13544.html" href="https://www.google.ru/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=2&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CCQQFjAB&amp;amp;url=http%3A%2F%2Finfocenter.arm.com%2Fhelp%2Ftopic%2Fcom.arm.doc.faqs%2Fka13544.html&amp;amp;ei=P7e7U52wPMX9ygP6h4K4DA&amp;amp;usg=AFQjCNHCuA_WlWhlF_fUTrEfcgjt1WiI-A&amp;amp;bvm=bv.70138588,d.bGQ" style="color: #660099; text-decoration: underline !important;" target="_blank"&gt;What is the fastest way to copy memory on a Cortex-A8?&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html"&gt;ARM Information Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 08 Jul 2014 09:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317200#M42025</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-07-08T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317201#M42026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got similar result by disabling the MMU. So this is not related to cache.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317201#M42026</guid>
      <dc:creator>fchai</dc:creator>
      <dc:date>2014-07-09T08:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317202#M42027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do not use special instructions (recommended by ARM) for memcpy ?&lt;/P&gt;&lt;P&gt;Your approach (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; *dst++ = *src++;&lt;/SPAN&gt;) - of course - is very simple, but defenitely&lt;/P&gt;&lt;P&gt;non-optimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Thu, 10 Jul 2014 01:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317202#M42027</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-07-10T01:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317203#M42028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this can not explain why the same copy (not optimized) have difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more detailed result by copy 640M memory (source memory cached):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If M == 0, finished in about 2.4 second.&lt;/P&gt;&lt;P&gt;If M == 1 or M == 15, finished in about 2.0 second.&lt;/P&gt;&lt;P&gt;If 2 &amp;lt;= M &amp;lt;= 14, finished in about 1.6 second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just confused by the different performance with different src/dst addresses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 07:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317203#M42028</guid>
      <dc:creator>fchai</dc:creator>
      <dc:date>2014-07-10T07:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Memory copy with different distance between source and destination address have different performance</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317204#M42029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;It makes sense to look at assembler codes of&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(*dst++ = *src++;)&amp;nbsp; and nearest code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;BR /&gt;You wrote about pageid(src) - what is pageid definition ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;BR /&gt;What DRAM (part number, Datasheet) is used in the case ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 07:52:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-copy-with-different-distance-between-source-and/m-p/317204#M42029</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-07-15T07:52:40Z</dc:date>
    </item>
  </channel>
</rss>

