<?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 Does disabling H/W prefetching affect prefetch/prefetchw instructions? in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090386#M5647</link>
    <description>&lt;P&gt;According to&amp;nbsp;https://software.intel.com/en-us/articles/disclosure-of-hw-prefetcher-control-on-some-intel-processors&lt;/P&gt;

&lt;P&gt;We can disable H/W prefetching through MSR. I'm wondering will it affect prefetch/prefetchw instructions (e.g., prefetch/prefetchw will no longer work)?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Sun, 23 Apr 2017 22:19:06 GMT</pubDate>
    <dc:creator>Ming-Wei_S_</dc:creator>
    <dc:date>2017-04-23T22:19:06Z</dc:date>
    <item>
      <title>Does disabling H/W prefetching affect prefetch/prefetchw instructions?</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090386#M5647</link>
      <description>&lt;P&gt;According to&amp;nbsp;https://software.intel.com/en-us/articles/disclosure-of-hw-prefetcher-control-on-some-intel-processors&lt;/P&gt;

&lt;P&gt;We can disable H/W prefetching through MSR. I'm wondering will it affect prefetch/prefetchw instructions (e.g., prefetch/prefetchw will no longer work)?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 22:19:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090386#M5647</guid>
      <dc:creator>Ming-Wei_S_</dc:creator>
      <dc:date>2017-04-23T22:19:06Z</dc:date>
    </item>
    <item>
      <title>Disabling hardware prefetch</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090387#M5648</link>
      <description>&lt;P&gt;Disabling hardware prefetch via the MSR controls does not disable software prefetch instructions.&lt;/P&gt;

&lt;P&gt;Software prefetch instructions are very seldom automatically generated by compilers except when generating code for first generation Xeon Phi (Knights Corner) systems, where they are typically essential for good performance.&lt;/P&gt;

&lt;P&gt;Software prefetch instructions have some advantages over loads -- they can be retired immediately, rather than waiting for the data to arrive, so they don't cause the out-of-order execution mechanisms to "back up".&amp;nbsp; On the other hand, software prefetches use the same Line Fill Buffers as ordinary loads, so they do not provide additional maximum concurrency.&amp;nbsp; (Carefully placed software prefetches can increase *effective* concurrency in cases where the hardware prefetchers are either ineffective or disabled, but most Intel processors are limited to a maximum of 10 L1 Data Cache misses using any combination of loads and/or software prefetches.)&lt;/P&gt;

&lt;P&gt;If you want to eliminate &lt;EM&gt;compiler-generated&lt;/EM&gt; software prefetches, the "-qopt-prefetch=0" option (or the identical "-qno-opt-prefetch" option) should be enough.&amp;nbsp; If the code contains explicit prefetch pragmas, then it would be a good idea to check the generated assembly code to see which option takes precedence.&amp;nbsp; Explicit software prefetch intrinsics (or inline assembly) should be unaffected by the "-qopt-prefetch=0" option.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:02:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090387#M5648</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2017-04-24T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Although Intel had to change</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090388#M5649</link>
      <description>&lt;P&gt;Although Intel had to change their CPUs a decade ago so that prefetchw would no longer count as illegal instruction (for "compatibility"), I haven't seen documentation as to whether it has any effect on other than AMD CPUs.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 17:09:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Does-disabling-H-W-prefetching-affect-prefetch-prefetchw/m-p/1090388#M5649</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2017-04-26T17:09:18Z</dc:date>
    </item>
  </channel>
</rss>

