<?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 I have only looked at this in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/MSR-CORE-PERF-LIMIT-REASONS-Set/m-p/1085195#M5543</link>
    <description>&lt;P&gt;I have only looked at this MSR very briefly.&amp;nbsp; We had a system with a bad cooling system that allowed a good exploration of the IA32_THERM_STATUS MSR, but I did not learn about the MSR_CORE_PERF_LIMIT_REASONS until after we returned that bad node....&lt;/P&gt;

&lt;P&gt;From a single test that I ran with an OpenMP version of the STREAM benchmark (using all cores in a 2-socket system), I saw a total of 8 bits that were set at least some of the time.&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;bit 15: LIMIT_REASONS &lt;STRONG&gt;Core Freq Limit Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;

		&lt;UL&gt;
			&lt;LI&gt;Set more often than not, even when not using all cores.&amp;nbsp; Not clear what this means....&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 31: LIMIT_REASONS &lt;STRONG&gt;Core Freq Limit Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set -- no surprise since the "frequency request" is the max single-core (non-AVX) Turbo frequency, which is only rarely achievable....&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 14: LIMIT_REASONS &lt;STRONG&gt;Core Max n-core Turbo Limit Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set while running all cores, never set when idle&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 30: LIMIT_REASONS &lt;STRONG&gt;Core Max n-core Turbo Limit Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 08: LIMIT_REASONS &lt;STRONG&gt;Electrical Design Point Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Mostly (but not always) set while running STREAM &amp;amp; almost always clear when the system was idle.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 24: LIMIT_REASONS &lt;STRONG&gt;Electrical Design Point Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 10: LIMIT_REASONS &lt;STRONG&gt;Multi-Core Turbo Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Never set during these runs, though the associated log bit was set on all cores.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 26: LIMIT_REASONS &lt;STRONG&gt;Multi-Core Turbo Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 02: LIMIT_REASONS &lt;STRONG&gt;PowerBudgetManagement Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Never set during these runs, though the associated log bit was set on all cores.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 18: LIMIT_REASONS &lt;STRONG&gt;PowerBudgetManagement &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I don't understand the difference between the "Multi-core Turbo Status" and the "Core Max n-core Turbo Frequency Limiting Status" -- in particular why I never saw the former set, but often saw the latter set.&lt;/P&gt;

&lt;P&gt;I have noticed a degree of inconsistency in the definition of related flags across Intel designs.&amp;nbsp; For example, on our Xeon E5 v3 systems, the RAPL MSR_PKG_PERF_STATUS MSR increments whenever the actual frequency is below the requested frequency.&amp;nbsp; Since the requested frequency is the max single-core, non-AVX Turbo frequency, and we almost always run with many cores operational, this MSR increments almost all the time.&amp;nbsp; On the other hand for the Xeon Phi 7250 processors (Knights Landing), this flag only increments when the actual frequency drops below the &lt;STRONG&gt;nominal&lt;/STRONG&gt; (1.5 GHz) frequency due to power limitations (even though the requested frequency is 1.6 GHz on this system).&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Since there are two sets of "n-core Turbo" frequencies for the Xeon E5 v3 ("normal" and "256-bit AVX"), I have to wonder how each of the frequency limit flags defined in the MSR_CORE_PERF_LIMIT_REASONS register relates to this new feature.&amp;nbsp; But I have not wondered enough to try to figure out the answers....&lt;/P&gt;

&lt;P&gt;Lots more information may be available via the performance counters of the Power Control Unit in the Xeon E5 v3 uncore, but those counters are also challenging to understand.....&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 16:16:04 GMT</pubDate>
    <dc:creator>McCalpinJohn</dc:creator>
    <dc:date>2017-04-26T16:16:04Z</dc:date>
    <item>
      <title>MSR_CORE_PERF_LIMIT_REASONS Set</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/MSR-CORE-PERF-LIMIT-REASONS-Set/m-p/1085194#M5542</link>
      <description>&lt;P&gt;There doesn't appear to be much documentation or information regarding the power management features on the Haswell processors and what is deemed "normal". Apologies for this post, but the only detailed answers I have read was from these forums.&lt;/P&gt;

&lt;P&gt;1:) I have seen issues on several servers running the E5 v3 haswell processors. Namely CPU frequency throttling, which is apparent from "turbostat" outputs that show the frequency operations at under 800MHz and the Bit2 register active under the MSR "MSR_CORE_PERF_LIMIT_REASONS"&lt;/P&gt;

&lt;P&gt;This would occur after a PSU flapping down and back up again. If the PSU redundancy was restored the processor would still be stuck in this state until reboot.&lt;/P&gt;

&lt;P&gt;Upgrading the Dell BIOS 1.5.4 &amp;gt; 2.1.7 alleviated this issue. Is this a known bug?&lt;/P&gt;

&lt;P&gt;2.)I am still seeing further strange CPU related issues, which may be attributed to a similar clocking issue, but I have not caught it in flight.&lt;/P&gt;

&lt;P&gt;I often see servers with the following BIT's always set to active:&lt;/P&gt;

&lt;P&gt;cpu0: MSR_CORE_PERF_LIMIT_REASONS, 0xc500c100 (Active: bit15, bit14, Amps, ) (Logged: bit31, bit30, PkgPwrL1, Amps, )&lt;BR /&gt;
	cpu1: MSR_CORE_PERF_LIMIT_REASONS, 0xc500c100 (Active: bit15, bit14, Amps, ) (Logged: bit31, bit30, PkgPwrL1, Amps, )&lt;/P&gt;

&lt;P&gt;Bit 14 refers to the Max n-core turbo frequency and 15, the core frequency limiting status. Is this deemed a normal state?&amp;nbsp; From memory the servers did not have any Active bits set at all on the older 1.5.4 BIOS that I reviewed. (post reboot)&lt;/P&gt;

&lt;P&gt;If this is not normal, is there documentation to find out why these are being set or a way of disabling these power saver settings completely?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2017 15:21:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/MSR-CORE-PERF-LIMIT-REASONS-Set/m-p/1085194#M5542</guid>
      <dc:creator>Ian_S_</dc:creator>
      <dc:date>2017-04-16T15:21:52Z</dc:date>
    </item>
    <item>
      <title>I have only looked at this</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/MSR-CORE-PERF-LIMIT-REASONS-Set/m-p/1085195#M5543</link>
      <description>&lt;P&gt;I have only looked at this MSR very briefly.&amp;nbsp; We had a system with a bad cooling system that allowed a good exploration of the IA32_THERM_STATUS MSR, but I did not learn about the MSR_CORE_PERF_LIMIT_REASONS until after we returned that bad node....&lt;/P&gt;

&lt;P&gt;From a single test that I ran with an OpenMP version of the STREAM benchmark (using all cores in a 2-socket system), I saw a total of 8 bits that were set at least some of the time.&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;bit 15: LIMIT_REASONS &lt;STRONG&gt;Core Freq Limit Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;

		&lt;UL&gt;
			&lt;LI&gt;Set more often than not, even when not using all cores.&amp;nbsp; Not clear what this means....&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 31: LIMIT_REASONS &lt;STRONG&gt;Core Freq Limit Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set -- no surprise since the "frequency request" is the max single-core (non-AVX) Turbo frequency, which is only rarely achievable....&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 14: LIMIT_REASONS &lt;STRONG&gt;Core Max n-core Turbo Limit Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set while running all cores, never set when idle&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 30: LIMIT_REASONS &lt;STRONG&gt;Core Max n-core Turbo Limit Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 08: LIMIT_REASONS &lt;STRONG&gt;Electrical Design Point Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Mostly (but not always) set while running STREAM &amp;amp; almost always clear when the system was idle.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 24: LIMIT_REASONS &lt;STRONG&gt;Electrical Design Point Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 10: LIMIT_REASONS &lt;STRONG&gt;Multi-Core Turbo Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Never set during these runs, though the associated log bit was set on all cores.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 26: LIMIT_REASONS &lt;STRONG&gt;Multi-Core Turbo Status &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 02: LIMIT_REASONS &lt;STRONG&gt;PowerBudgetManagement Status &lt;EM&gt;flag&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Never set during these runs, though the associated log bit was set on all cores.&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;bit 18: LIMIT_REASONS &lt;STRONG&gt;PowerBudgetManagement &lt;EM&gt;Log&lt;/EM&gt;&lt;/STRONG&gt;
		&lt;UL&gt;
			&lt;LI&gt;Always set&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I don't understand the difference between the "Multi-core Turbo Status" and the "Core Max n-core Turbo Frequency Limiting Status" -- in particular why I never saw the former set, but often saw the latter set.&lt;/P&gt;

&lt;P&gt;I have noticed a degree of inconsistency in the definition of related flags across Intel designs.&amp;nbsp; For example, on our Xeon E5 v3 systems, the RAPL MSR_PKG_PERF_STATUS MSR increments whenever the actual frequency is below the requested frequency.&amp;nbsp; Since the requested frequency is the max single-core, non-AVX Turbo frequency, and we almost always run with many cores operational, this MSR increments almost all the time.&amp;nbsp; On the other hand for the Xeon Phi 7250 processors (Knights Landing), this flag only increments when the actual frequency drops below the &lt;STRONG&gt;nominal&lt;/STRONG&gt; (1.5 GHz) frequency due to power limitations (even though the requested frequency is 1.6 GHz on this system).&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Since there are two sets of "n-core Turbo" frequencies for the Xeon E5 v3 ("normal" and "256-bit AVX"), I have to wonder how each of the frequency limit flags defined in the MSR_CORE_PERF_LIMIT_REASONS register relates to this new feature.&amp;nbsp; But I have not wondered enough to try to figure out the answers....&lt;/P&gt;

&lt;P&gt;Lots more information may be available via the performance counters of the Power Control Unit in the Xeon E5 v3 uncore, but those counters are also challenging to understand.....&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:16:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/MSR-CORE-PERF-LIMIT-REASONS-Set/m-p/1085195#M5543</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2017-04-26T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

