<?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 Thanks for your response. in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163533#M7101</link>
    <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;

&lt;P&gt;I need to query metrics such as BytesReadFromMCs, LLCMisses, etc. These are not Core metrics.&lt;/P&gt;

&lt;P&gt;Can I still get this information by querying a specific core?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 14:54:11 GMT</pubDate>
    <dc:creator>Gaurav_B_Intel</dc:creator>
    <dc:date>2017-08-09T14:54:11Z</dc:date>
    <item>
      <title>Overhead for getSystemCounterState</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163531#M7099</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have recently started using PCM and absolutely love the kind of information it provides. I am using the C++ APIs to instrument my code.&lt;/P&gt;

&lt;P&gt;Particularly interested in measuring memory related issues such as total memory BW achieved, and Cache misses etc.&lt;/P&gt;

&lt;P&gt;I use the getSytemCounterState API to get before and after states, and then use the API to get the total bytes read and written to MCs.&lt;/P&gt;

&lt;P&gt;I am, however, seeing quite a large overhead for getSystemCounterState function call.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I see:&lt;/P&gt;

&lt;P&gt;Around 1 ms on a 10 core Broadwell desktop&lt;/P&gt;

&lt;P&gt;Around 6 ms on a 20 core Skylake Xeon&lt;/P&gt;

&lt;P&gt;Around 64 ms on 68 cores KNL!&lt;/P&gt;

&lt;P&gt;Is this expected? This is really modifying the numbers I am seeing. Is there any way to avoid this overhead?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Gaurav.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 04:44:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163531#M7099</guid>
      <dc:creator>Gaurav_B_Intel</dc:creator>
      <dc:date>2017-08-08T04:44:30Z</dc:date>
    </item>
    <item>
      <title>getSystemCounterState returns</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163532#M7100</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;getSystemCounterState returns the counters for the entire system, that means all sockets, and all logical cores within those sockets. &amp;nbsp;Therefor the more cores you have the longer this function will take.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The question is do you need to check the entire system counters, or can you rework to just query on specific core's which would be alot quicker ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163532#M7100</guid>
      <dc:creator>Richard_Nutman</dc:creator>
      <dc:date>2017-08-09T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Thanks for your response.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163533#M7101</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;

&lt;P&gt;I need to query metrics such as BytesReadFromMCs, LLCMisses, etc. These are not Core metrics.&lt;/P&gt;

&lt;P&gt;Can I still get this information by querying a specific core?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:54:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163533#M7101</guid>
      <dc:creator>Gaurav_B_Intel</dc:creator>
      <dc:date>2017-08-09T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Try and see if you can use</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163534#M7102</link>
      <description>&lt;P&gt;Try and see if you can use&amp;nbsp;&lt;SPAN style="color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;getUncoreCounterStates.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;It retrieves uncore information for system and sockets, but no core information.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 15:05:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163534#M7102</guid>
      <dc:creator>Richard_Nutman</dc:creator>
      <dc:date>2017-08-09T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Unfortunately</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163535#M7103</link>
      <description>&lt;P&gt;Unfortunately&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;getSystemCounterState is not parallelized yet. It takes linear time to read all core counters. As suggested you can try using&amp;nbsp;getUncoreCounterStates or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;getAllCounterStates. The latter parallelizes the most time consuming part for reading core counters. Make sure you use the latest PCM from github (&lt;/SPAN&gt;&lt;A href="https://github.com/opcm/pcm/" target="_blank"&gt;https://github.com/opcm/pcm/&lt;/A&gt;&lt;SPAN style="color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 12:24:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Overhead-for-getSystemCounterState/m-p/1163535#M7103</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2017-08-14T12:24:20Z</dc:date>
    </item>
  </channel>
</rss>

