<?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 Xeon E5/E5v2 performance counters - not all counters working for all events in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Xeon-E5-E5v2-performance-counters-not-all-counters-working-for/m-p/1043739#M4615</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm working with a Xeon E5-1650 and a Xeon E5-2697 v2. Each model has 8 performance counters according to CPUID. However, I'm finding that counters 4-7 refuse to log certain events. For example, if I program all counters to log&amp;nbsp;MEM_LOAD_UOPS_RETIRED.L1_HIT then only the first 4 counters increment. If I program all counters to use another event, like&amp;nbsp;CPU_CLK_UNHALTED.THREAD_P, then all 8 counters increment.&lt;/P&gt;

&lt;P&gt;I can't find anything in the docs that specifies which counters are capable of logging which events - is this expected behavior?&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Sep 2014 13:06:51 GMT</pubDate>
    <dc:creator>Jacob_M_</dc:creator>
    <dc:date>2014-09-09T13:06:51Z</dc:date>
    <item>
      <title>Xeon E5/E5v2 performance counters - not all counters working for all events</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Xeon-E5-E5v2-performance-counters-not-all-counters-working-for/m-p/1043739#M4615</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm working with a Xeon E5-1650 and a Xeon E5-2697 v2. Each model has 8 performance counters according to CPUID. However, I'm finding that counters 4-7 refuse to log certain events. For example, if I program all counters to log&amp;nbsp;MEM_LOAD_UOPS_RETIRED.L1_HIT then only the first 4 counters increment. If I program all counters to use another event, like&amp;nbsp;CPU_CLK_UNHALTED.THREAD_P, then all 8 counters increment.&lt;/P&gt;

&lt;P&gt;I can't find anything in the docs that specifies which counters are capable of logging which events - is this expected behavior?&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 13:06:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Xeon-E5-E5v2-performance-counters-not-all-counters-working-for/m-p/1043739#M4615</guid>
      <dc:creator>Jacob_M_</dc:creator>
      <dc:date>2014-09-09T13:06:51Z</dc:date>
    </item>
    <item>
      <title>Hello Jacob,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Xeon-E5-E5v2-performance-counters-not-all-counters-working-for/m-p/1043740#M4616</link>
      <description>&lt;P&gt;Hello Jacob,&lt;/P&gt;

&lt;P&gt;The Ivybridge (IVB) core PMU (Performance monitoring unit) is similar to the Sandybridge (SNB) PMU. See the June 2014 SDM vol 3, section 18.10.&lt;/P&gt;

&lt;P&gt;The SNB core PMU supports 8 general counters if CPUID.0AH:EAX[15:8] = 8 and 4 counters if CPUID.0AH:EAX[15:8] = 4. Basically if Hyper-Threading (HT) is enabled then you get 4 counters and 8 counters if HT is disabled. See section 18.9.1 and 18.9.2.&lt;/P&gt;

&lt;P&gt;The PEBS events can't be programmed in gen counters 4-7 (PMC4-7). See SDM&amp;nbsp;table 18.46.&lt;/P&gt;

&lt;P&gt;Also from section 18.9.4: PEBS events are only valid when the following fields of IA32_PERFEVTSELx are all zero: AnyThread, Edge, Invert, CMask. Also, only PMC3 can be used to capture precise store events. If you setting MEM_LOAD_UOPS_RETIRED.L1_HIT as a precise event then it will not count in PMC4-7.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:35:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Xeon-E5-E5v2-performance-counters-not-all-counters-working-for/m-p/1043740#M4616</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2014-09-09T16:35:38Z</dc:date>
    </item>
  </channel>
</rss>

