<?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 Sorry for the late reply. in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144528#M6729</link>
    <description>&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;It turns out that the issue was due to incompatibility between Ubuntu xenial and linux kernel &amp;gt; 4.7.10.&lt;/P&gt;&lt;P&gt;I upgraded my distro to Ubuntu bionic (18.04) and kernel to 4.15.x and now RAPL readings for DRAM package are fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for valuable input.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 03:16:53 GMT</pubDate>
    <dc:creator>Kaushik__Pradyumna</dc:creator>
    <dc:date>2018-11-14T03:16:53Z</dc:date>
    <item>
      <title>Inconsistent values of perfevent hardware counters when measuring power consumption of DRAM using RAPL</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144525#M6726</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi,&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;I recently noticed a large inconsistency in the data retrieved from&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;the perf_event hardware counters pertaining to the power consumption&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;of DRAM.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;This inconsistency was noticed upon a kernel upgrade from 4.4.0 to 4.14.20.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Machine specs,&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Dual Socket.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Processor specs:&lt;EM&gt; Intel(R) Xeon(R) CPU E5-2650 v3, 2.30 GHz&lt;/EM&gt; (10 cores&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;with 2 threads per core).&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;So, overall it's a 20 core, 40 thread machine.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;TDP of the machine -- 210 Watts (105 Watts for each Xeon processor)&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;In my research lab, we use Performance Co-Pilot to measure power&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;consumption of the CPU and DRAM through the use of perfevent hardware&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;counters and RAPL.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;STRONG&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Old results&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Ubuntu Xenial&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Kernel Version: 4.4.0&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;idle power consumption of CPU -- 33.34 Watts&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;idle power consumption of DRAM -- 14.76 Watts&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;STRONG&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;New results (after kernel upgrade)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Ubuntu Xenial&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Kernel Version: 4.14.20&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Idle power consumption of CPU -- 33.23 Watts&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Idle power consumption of DRAM -- 59.15 Watts&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;Can anyone give me some insight as to why this is the case?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 00:26:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144525#M6726</guid>
      <dc:creator>Kaushik__Pradyumna</dc:creator>
      <dc:date>2018-02-26T00:26:15Z</dc:date>
    </item>
    <item>
      <title>The DRAM RAPL domain requires</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144526#M6727</link>
      <description>&lt;P&gt;The DRAM RAPL domain requires another energy unit as the package domain but only the one of the package domain is readable from some register (6.1E-5). As far as I know the energy unit for the DRAM domain is hard-coded in the kernel sources (something like energy-unit-of-package-domain/4 = 15.3E-6). Your numbers look like the DRAM domain uses the same energy unit as the PKG domain. This is just a guess because the scaling factor for your results between kernel 4.4 and 4.14 is almost exactly 4 (59.15/14.76 = 4.008).&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:07:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144526#M6727</guid>
      <dc:creator>Thomas_G_4</dc:creator>
      <dc:date>2018-02-26T15:07:48Z</dc:date>
    </item>
    <item>
      <title>The Xeon E5 v3 datasheet</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144527#M6728</link>
      <description>&lt;P&gt;The Xeon E5 v3 datasheet (document 330784) says that the DRAM energy unit on this product is a fixed 15.3 micro-Joules (1/65536 J), independent of the value used for the energy unit for the RAPL package domain.&lt;/P&gt;

&lt;P&gt;This fixed DRAM energy unit appears to be carried forward on newer processors, but documentation is sparse (and sometimes incorrect).&lt;/P&gt;

&lt;P&gt;It is pretty easy to do a "sanity check" on these numbers.&amp;nbsp; The maximum power consumption of a DIMM will be in the 4-5 Watt range, so I typically check the power consumption while running STREAM and divide by the number of DIMMs.&amp;nbsp;&amp;nbsp; If the power per DIMM is in the 16 Watt range, you are using the wrong energy unit -- most likely the one from the RAPL_ENERGY_UNIT MSR.&lt;/P&gt;

&lt;P&gt;Idle power is a lot harder to bound.&amp;nbsp; Obviously it will be less than the maximum, but I have seen very large fluctuations in DRAM power on systems that were "idle".&amp;nbsp;&amp;nbsp; There are a number of power-saving mechanisms available in DDR4 DRAMs, but it is not easy to identify when these will be used and when they will not be used.&amp;nbsp;&amp;nbsp; There are performance counters in the memory controller of the uncore that can be used to monitor some of the power-saving modes (POWER_CHANNEL_DLLOFF, POWER_CHANNEL_PPD, POWER_CKE_CYCLES, POWER_SELF_REFRESH), but I have not tried to correlate these with energy consumption measurements.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:55:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144527#M6728</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2018-02-26T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Sorry for the late reply.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144528#M6729</link>
      <description>&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;It turns out that the issue was due to incompatibility between Ubuntu xenial and linux kernel &amp;gt; 4.7.10.&lt;/P&gt;&lt;P&gt;I upgraded my distro to Ubuntu bionic (18.04) and kernel to 4.15.x and now RAPL readings for DRAM package are fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for valuable input.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 03:16:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Inconsistent-values-of-perfevent-hardware-counters-when/m-p/1144528#M6729</guid>
      <dc:creator>Kaushik__Pradyumna</dc:creator>
      <dc:date>2018-11-14T03:16:53Z</dc:date>
    </item>
  </channel>
</rss>

