<?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 How to read Uncore Events by perf tools. in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119284#M6159</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Does anyone know how to read intel &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;uncore&lt;/STRONG&gt;&lt;STRONG&gt; events"&lt;/STRONG&gt; by perf tools?&lt;/P&gt;

&lt;P&gt;I used to exploit some commands to read core's performance counters like below.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; - perf stat -e cpu/event=0xd3,umask=0x01/pp &amp;lt;command&amp;gt;&lt;/P&gt;

&lt;P&gt;But, I am sure how to read uncore events such as Ingress_occupancy on CHA.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;when I try to a command like below, it doesn't work well..&lt;/P&gt;

&lt;P&gt;&amp;nbsp; - perf state -e uncore_cha_0/event=0x11,umask=0x01 &amp;lt;command&amp;gt;&lt;/P&gt;

&lt;P&gt;Note that I am using Knights Landing machine.&lt;/P&gt;

&lt;P&gt;Is there any idea?&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 06:55:05 GMT</pubDate>
    <dc:creator>Daejin_J_</dc:creator>
    <dc:date>2016-10-19T06:55:05Z</dc:date>
    <item>
      <title>How to read Uncore Events by perf tools.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119284#M6159</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Does anyone know how to read intel &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;uncore&lt;/STRONG&gt;&lt;STRONG&gt; events"&lt;/STRONG&gt; by perf tools?&lt;/P&gt;

&lt;P&gt;I used to exploit some commands to read core's performance counters like below.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; - perf stat -e cpu/event=0xd3,umask=0x01/pp &amp;lt;command&amp;gt;&lt;/P&gt;

&lt;P&gt;But, I am sure how to read uncore events such as Ingress_occupancy on CHA.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;when I try to a command like below, it doesn't work well..&lt;/P&gt;

&lt;P&gt;&amp;nbsp; - perf state -e uncore_cha_0/event=0x11,umask=0x01 &amp;lt;command&amp;gt;&lt;/P&gt;

&lt;P&gt;Note that I am using Knights Landing machine.&lt;/P&gt;

&lt;P&gt;Is there any idea?&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 06:55:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119284#M6159</guid>
      <dc:creator>Daejin_J_</dc:creator>
      <dc:date>2016-10-19T06:55:05Z</dc:date>
    </item>
    <item>
      <title>The following command worked</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119285#M6160</link>
      <description>&lt;P&gt;The following command worked for me:&lt;/P&gt;

&lt;P&gt;perf stat -a -e uncore_cha_0/event=0x11,umask=0x1/&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:13:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119285#M6160</guid>
      <dc:creator>Dmitry_R_Intel1</dc:creator>
      <dc:date>2016-10-20T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Dear Dmitry,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119286#M6161</link>
      <description>&lt;P&gt;Dear Dmitry,&lt;/P&gt;

&lt;P&gt;Could you let me know which machine, kernel, perf version you tested on?&lt;/P&gt;

&lt;P&gt;In my case, I used Intel's KNL,&amp;nbsp;Linux knl 3.10.0-327.13.1.el7.xppsl_1.4.0.3211.x86_64, and&amp;nbsp;perf version 3.10.0-327.el7.x86_64.debug. I received the "not supported" message.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Please check the following results.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Performance counter stats for 'ls':&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;not supported&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;uncore_cha_0/event=0x11,umask=01/&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.009539475 seconds time elapsed&lt;/P&gt;

&lt;P&gt;Thank&amp;nbsp;you.&lt;/P&gt;

&lt;P&gt;Daejin.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119286#M6161</guid>
      <dc:creator>Daejin_J_</dc:creator>
      <dc:date>2016-10-20T07:22:00Z</dc:date>
    </item>
    <item>
      <title>I also got the "&lt;not</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119287#M6162</link>
      <description>&lt;P&gt;I also got the "&amp;lt;not supported&amp;gt;" message on 3.10.0-327.22.2.el7.xppsl_1.4.1.3272.x86_64, but this morning when I tried it again I got a much better error message pointing to "perf_event_paranoid" permissions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Sure enough,&amp;nbsp; I see that /proc/sys/kernel/perf_event_paranoid is set to 1, and setting it to zero allows the "perf stat" command above to succeed.&amp;nbsp; Running STREAM on 68 cores gave non-zero counts:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,130,452,502&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uncore_cha_0/event=0x11,umask=0x1/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.440644400 seconds time elapsed&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 14:28:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119287#M6162</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2016-10-20T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Dear Dr. John</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119288#M6163</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 13.008px;"&gt;Dear Dr. John&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thank you for your response.&lt;/P&gt;

&lt;P&gt;I updated my kernel version to 3.10.0-327.36.1.el7.xppsl_1.4.2.3331.x86_64 on my KNL&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;CPU 7250. and set&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;/proc/sys/kernel/perf_event_paranoid&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;to zero. However, I still got the &amp;lt;not supported&amp;gt; message for uncore_cha_0/event=0x11,umask=0x01/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;When I see the Kernel PMU event listed from "perf list" , there are not any&amp;nbsp;unocre&amp;nbsp;events. (my perf version is&amp;nbsp;&lt;/SPAN&gt;3.10.0-327.36.2.el7.x86_64.debug )&lt;/P&gt;

&lt;P&gt;Do you have any suggestions? Please let me know your perf version.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;IMG alt="" src="http://postfiles12.naver.net/MjAxNjEwMjFfODEg/MDAxNDc2OTg5NzU1Mzg0.CtGG0RCTLlIqSOK-EO04a-c68cKUxgL25F7wVekFgzcg.u8HirCgSYyjVwsSn14DL1So_dOlC1AaD2ZFTFsh3q8gg.PNG.chips05/perf.PNG?type=w2" /&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 18:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119288#M6163</guid>
      <dc:creator>Daejin_J_</dc:creator>
      <dc:date>2016-10-20T18:58:00Z</dc:date>
    </item>
    <item>
      <title>Dear Dr John and Dmitry.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119289#M6164</link>
      <description>&lt;P&gt;Dear Dr John and Dmitry.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="background-color: rgb(255, 255, 255);"&gt;I did it. I extracted occupancy counters thanks to you.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="background-color: rgb(255, 255, 255);"&gt;But, I'd like to set a certain&amp;nbsp;threshold to get event counts whenever the occupancy exceeds the threshold.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;is it possible on perf?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;Daejin Jung.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 04:45:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119289#M6164</guid>
      <dc:creator>Daejin_J_</dc:creator>
      <dc:date>2016-10-21T04:45:38Z</dc:date>
    </item>
    <item>
      <title>Please try adding 'thresh'</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119290#M6165</link>
      <description>&lt;P&gt;Please try adding 'thresh' option, e.g.:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;uncore_cha_0/event=0x11,umask=0x1&lt;/SPAN&gt;,thresh=0x2&lt;SPAN style="font-size: 12px;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 14:26:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-read-Uncore-Events-by-perf-tools/m-p/1119290#M6165</guid>
      <dc:creator>Dmitry_R_Intel1</dc:creator>
      <dc:date>2016-10-21T14:26:21Z</dc:date>
    </item>
  </channel>
</rss>

