<?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 The Sandy Bridge core has 8 in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951861#M2260</link>
    <description>&lt;P&gt;The Sandy Bridge core has 8 programmable performance counters, but these are split into two groups of four when HyperThreading is enabled.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2013 16:01:20 GMT</pubDate>
    <dc:creator>McCalpinJohn</dc:creator>
    <dc:date>2013-10-17T16:01:20Z</dc:date>
    <item>
      <title>[PCM] Adding extra events "MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM" and "MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM"</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951852#M2251</link>
      <description>&lt;P&gt;I am modifying PCM to monitor other events that are not included in current release.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specifically, I am interested in "MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM" and "MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM".&lt;/P&gt;
&lt;P&gt;The "Intel® 64 and IA-32 Architectures&amp;nbsp;Software Developer’s Manual&amp;nbsp;Volume 3 (3A, 3B &amp;amp; 3C):&amp;nbsp;System Programming Guide" comments "Disable BL bypass and direct2core (see MSR 0x3C9)".&lt;/P&gt;
&lt;P&gt;I assume that I have to disable BL bypass and direct2core first. Then, I can obtain the values of these events.&lt;/P&gt;
&lt;P&gt;However, I did not find anyplace that gives instructions to disable BL bypass and direct2core.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know:&lt;/P&gt;
&lt;P&gt;1. Do I need to disable&amp;nbsp;BL bypass and direct2core for getting the values of "MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM" and "MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM"?&lt;/P&gt;
&lt;P&gt;2. If the answer is yes to 1, how do I do that?&lt;/P&gt;
&lt;P&gt;I appreciate any information and guidance to answer these questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;Ron C. Chiang&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 21:22:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951852#M2251</guid>
      <dc:creator>wang__chi-lung</dc:creator>
      <dc:date>2013-10-09T21:22:07Z</dc:date>
    </item>
    <item>
      <title>Have you looked at</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951853#M2252</link>
      <description>&lt;P&gt;Have you looked at description of MSR 0x3C9 does it contain some info on how to disable BL bypass and direct2core?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:49:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951853#M2252</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2013-10-10T05:49:06Z</dc:date>
    </item>
    <item>
      <title>Thank you for your reply,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951854#M2253</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;/P&gt;
&lt;P&gt;I have checked the description of MSR 0x3C9 in the manual, and searched "BL bypass" and "direct2core" in both the manual and internet.&lt;/P&gt;
&lt;P&gt;Unfortunately, I did not find any clear information.&lt;/P&gt;
&lt;P&gt;Is there any additional document for MSR?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 15:10:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951854#M2253</guid>
      <dc:creator>wang__chi-lung</dc:creator>
      <dc:date>2013-10-10T15:10:36Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt;Is there any additional</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951855#M2254</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;Is there any additional document for MSR?&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;I am afraid that beside the SDM documentation there is no freely available more in-depth documentation.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 16:04:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951855#M2254</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2013-10-10T16:04:02Z</dc:date>
    </item>
    <item>
      <title>Thank you for your reply,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951856#M2255</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;/P&gt;
&lt;P&gt;Does that imply the answer is in some documents that are not freely available?&lt;/P&gt;
&lt;P&gt;Also, do I need BIOS support to disable BL bypass and direct2core? If not, can BL bypass and direct2cire be disabled by setting MSR?&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 17:13:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951856#M2255</guid>
      <dc:creator>wang__chi-lung</dc:creator>
      <dc:date>2013-10-10T17:13:48Z</dc:date>
    </item>
    <item>
      <title>I suppose that more advanced</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951857#M2256</link>
      <description>&lt;P&gt;I suppose that more advanced technical documentation will be available for Bios vendors based upon some kind of NDA agreement.&lt;/P&gt;
&lt;P&gt;Unfortunately I do not have an answer to your last question.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2013 05:44:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951857#M2256</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2013-10-11T05:44:34Z</dc:date>
    </item>
    <item>
      <title>Please see this article</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951858#M2257</link>
      <description>&lt;P&gt;Please see this article describing the workaround:&amp;nbsp;&lt;A href="http://software.intel.com/en-us/articles/performance-monitoring-on-intel-xeon-processor-e5-family"&gt;http://software.intel.com/en-us/articles/performance-monitoring-on-intel-xeon-processor-e5-family&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Intel PCM implements it in&amp;nbsp;PCM::enableJKTWorkaround function.&lt;/P&gt;
&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2013 06:25:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951858#M2257</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2013-10-11T06:25:05Z</dc:date>
    </item>
    <item>
      <title>Hi Ron</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951859#M2258</link>
      <description>&lt;P&gt;Hi Ron&lt;/P&gt;
&lt;P&gt;where in the manual is description of MSR 0x3C9?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2013 07:45:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951859#M2258</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2013-10-11T07:45:36Z</dc:date>
    </item>
    <item>
      <title>Sorry for the late reply and</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951860#M2259</link>
      <description>&lt;P&gt;Sorry for the late reply and Thanks for the response from iliyapolak and Roman.&lt;/P&gt;
&lt;P&gt;iliyapolak,&lt;/P&gt;
&lt;P&gt;I can only find Table 18-39 and 35-18 (in the manual Vol.3) mentioned MSR 0x3c9. But, I did not find any explanation there.&lt;/P&gt;
&lt;P&gt;Roman, Thank you for the hint.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My machine is Xeon E5-2620. PCM detects it as&amp;nbsp;"Intel(r) microarchitecture codename Sandy Bridge-EP/Jaketown"&lt;/P&gt;
&lt;P&gt;After seeing your reply and trace the code again, I found that workaround is already enabled. So, I started to debug my modification.&lt;/P&gt;
&lt;P&gt;The original pcm.x monitors 4 events on this machine. My first attempt was extending "coreEventDesc" in cpucounters.cpp. For example, I add the following code for one extra event.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"coreEventDesc[4].event_number = MEM_LOAD_UOPS_LLC_MISS_RETIRED_LOCAL_DRAM_EVTNR;&lt;/P&gt;
&lt;P&gt;coreEventDesc[4].umask_value = MEM_LOAD_UOPS_LLC_MISS_RETIRED_LOCAL_DRAM_UMASK;"&lt;/P&gt;
&lt;P&gt;I also changed corresponding numbers, e.g,&amp;nbsp;core_gen_counter_num_used = 5; //It was 4 before the modification.&lt;/P&gt;
&lt;P&gt;However, I never get a valid number from this implementation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, I tried another way today. I change one of the 4 originally mornitored events to the one I want, instead of adding extra one to "coreEventDesc".&lt;/P&gt;
&lt;P&gt;It works. Now I can collect other events.&lt;/P&gt;
&lt;P&gt;I am happy to have this problem solved. But, I have one more question. pcm.x shows that "Number of core PMU generic (programmable) counters: 8". So, I thought that I have 8 counters to use and started my first attempt. However, it seems there are only 4 available?&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 03:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951860#M2259</guid>
      <dc:creator>wang__chi-lung</dc:creator>
      <dc:date>2013-10-17T03:24:00Z</dc:date>
    </item>
    <item>
      <title>The Sandy Bridge core has 8</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951861#M2260</link>
      <description>&lt;P&gt;The Sandy Bridge core has 8 programmable performance counters, but these are split into two groups of four when HyperThreading is enabled.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 16:01:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951861#M2260</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2013-10-17T16:01:20Z</dc:date>
    </item>
    <item>
      <title>Thank you, John,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951862#M2261</link>
      <description>&lt;P&gt;Thank you, John,&lt;/P&gt;
&lt;P&gt;I did disable HyperThreading on this machine.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 16:11:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951862#M2261</guid>
      <dc:creator>wang__chi-lung</dc:creator>
      <dc:date>2013-10-17T16:11:53Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951863#M2262</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;when Hyperthreading is disabled there should be 8 programmable counters in hardware on your system. 4 hardware programmable counters are available if Hyperthreading is enabled. Intel PCM currently supports 4 programmable counters. We might address this in a future version of Intel PCM.&lt;/P&gt;
&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2013 11:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Adding-extra-events-quot-MEM-LOAD-UOPS-LLC-MISS-RETIRED/m-p/951863#M2262</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2013-10-22T11:28:00Z</dc:date>
    </item>
  </channel>
</rss>

