<?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 Quote:iliyapolak wrote: in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007054#M3683</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;On Ultrabook, as you will find by web searches&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;Do you have Lenovo Yoga ultrabook.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Acer Aspire Ultrabook&lt;/P&gt;</description>
    <pubDate>Mon, 29 Sep 2014 11:28:27 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2014-09-29T11:28:27Z</dc:date>
    <item>
      <title>HyperThreading performance issues on Haswell</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007052#M3681</link>
      <description>&lt;P&gt;I've noted some peculiarities about behavior of HyperThreading on Haswell CPUs, on which I haven't been able to find any discussion.&lt;/P&gt;

&lt;P&gt;On my Ultrabook, I don't find any BIOS menu option to disable HyperThreading.&amp;nbsp;&amp;nbsp; In OpenMP benchmarks (Windows 8.1), I find that allowing num_threads to default to the number of logicals degrades performance of subsequent single threaded code, typically by 30%, in comparison with setting num_threads to number of cores and OMP_PROC_BIND=spread, when running benchmarks compiled by Intel C++ or Fortran.&amp;nbsp;&amp;nbsp; Also under Cilk(tm) Plus, cutting CILK_NWORKERS down to the number of physical cores seems to result in more consistent performance.&amp;nbsp; When compiling with gfortran or g++, running the full number of threads doesn't degrade subsequent single thread performance, but there a delay (longer than the expected OpenMP blocking time) in returning to Windows command prompt when the benchmark completes.&lt;/P&gt;

&lt;P&gt;On Ultrabook, as you will find by web searches, the BIOS menu can be reached only when starting from power off, not on a power on restart.&amp;nbsp; No one has explained why.&lt;/P&gt;

&lt;P&gt;On a new Xeon -v3 server, we found the BIOS menu option to disable HyperThreading, but it fails to boot with HyperThreading disabled.&amp;nbsp;&amp;nbsp; I suggested submission of an IPS issue by the person to whom the platform is registered, but haven't heard of that being done.&amp;nbsp; Our workloads didn't attempt to take advantage of the vast number of logical processors available; as far as we could see, Windows 2012 R2 scheduler is able to distribute threads to separate cores.&lt;/P&gt;

&lt;P&gt;VTune analysis reported that our workload incurred 25.9% remote memory accesses, presumably due to threads moving among CPUs, on a -v1 server (HT disabled).&amp;nbsp; I would have liked to know whether HyperThreading would influence this.&amp;nbsp;&amp;nbsp; This figure lends credence to proposals that switching to an OS other than Windows could improve performance by 10% with affinity setting (e.g. taskset).&amp;nbsp; As the VTune with server -v3 support remains under non-disclosure, we weren't able to run that analysis on the -v3, and the BIOS menu issue prevented a non-HT timing test.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Sep 2014 11:52:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007052#M3681</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-09-28T11:52:32Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt;On Ultrabook, as you will</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007053#M3682</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;On Ultrabook, as you will find by web searches&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;Do you have Lenovo Yoga ultrabook.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 11:18:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007053#M3682</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-09-29T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Quote:iliyapolak wrote:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007054#M3683</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;On Ultrabook, as you will find by web searches&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;Do you have Lenovo Yoga ultrabook.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Acer Aspire Ultrabook&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 11:28:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007054#M3683</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-09-29T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Did you try to check  if</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007055#M3684</link>
      <description>&lt;P&gt;Did you try to check&amp;nbsp; if there is newer verison of BIOS on the Acer website?&lt;/P&gt;

&lt;P&gt;Is there any way to enable/disable HT programmatically from the kernel mode? I was not able to find any info about that.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 12:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007055#M3684</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-09-29T12:47:00Z</dc:date>
    </item>
    <item>
      <title>Hello Tim,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007056#M3685</link>
      <description>&lt;P&gt;Hello Tim,&lt;/P&gt;

&lt;P&gt;Can you try disabling Windows&amp;nbsp;'Fast Startup'&amp;nbsp;feature and see if you can't then disable HT? I don't know if it will fix the problem but it might.&lt;/P&gt;

&lt;P&gt;Do enable/disable Fast Startup (on my laptop anyway) do 1) win button+x, 2) select power_options, 3) left menu: 'choose what power&amp;nbsp;buttons do', 4) then select 'change settings which are currently unavailable, 5) now the 'Shutdown Settings' option "Turn on Fast Startup" will be changeable at the bottom of the screen.&lt;/P&gt;

&lt;P&gt;The Fast Startup seems to do almost a hibernate on shutdown. On my Lenovo Ultrabook, if Fast Startup is enabled and I disable HT then windows has to boot, then shutdown (without ever letting me login), then boot again. I had to disable windows Fast Startup on another dual-booted laptop in order to be able to read the windows partition from Linux.&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 15:48:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007056#M3685</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2014-09-29T15:48:35Z</dc:date>
    </item>
    <item>
      <title>I hadn't applied any BIOS or</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007057#M3686</link>
      <description>&lt;P&gt;I hadn't applied any BIOS or driver updates in recent months, assuming there would be automatic notifications (wrong assumption).&amp;nbsp; However, updates didn't affect the lack of an HT disable option.&amp;nbsp; Updates do appear to improve Synaptics device.&lt;/P&gt;

&lt;P&gt;Disabling "fast startup" does make it possible to power down faster, but doesn't change the lack of any HT disable option in BIOS.&amp;nbsp; Interesting to hear that some Ultrabook vendors do have an HT disable.&amp;nbsp; My BIOS has an option to select "legacy" in place of UEFI, but the boot hangs in "legacy" mode.&lt;/P&gt;

&lt;P&gt;Having found a way around this strange issue about HyperThreading, I get more consistent comparisons among compilers.&lt;/P&gt;

&lt;P&gt;When I restrict the Intel builds to 2 threads running on separate cores, the only kernel in my test suite where gfortran is over 10% faster than ifort is the CASE (Fortran equivalent of C switch).&amp;nbsp;&lt;/P&gt;

&lt;P&gt;There are more cases where g++ out-performs ICL than the other way around.&amp;nbsp; I take into account non-portabilities between Intel C++ and g++ such as the need to replace std::max for Intel by fmax with -ffinite-math-only for g++.&amp;nbsp; Each compiler optimizes some cases of STL transform() which the other doesn't.&lt;/P&gt;

&lt;P&gt;The recent major release of Intel compilers corrected cases where compiler generated fast_memcpy calls were degrading performance.&amp;nbsp; A corollary is that plain C code is preferred over memcpy() for best performance.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:32:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/HyperThreading-performance-issues-on-Haswell/m-p/1007057#M3686</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-09-29T17:32:01Z</dc:date>
    </item>
  </channel>
</rss>

