<?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 required approach depends in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128514#M6355</link>
    <description>&lt;P&gt;The required approach depends on what you are trying to measure.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you want measurements by core for any running process, and you can guarantee that the counters cannot increment more than pow(2,48) times between measurements, then you simply disable overflows (by clearing bit 20 in each of the IA32_PERFEVTSEL MSRs) and leave the counters running free.&amp;nbsp;&amp;nbsp; If a measurement looks smaller than a previous measurement, then add pow(2,48) to the difference to correct for the wrap-around.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2017 15:30:54 GMT</pubDate>
    <dc:creator>McCalpinJohn</dc:creator>
    <dc:date>2017-06-19T15:30:54Z</dc:date>
    <item>
      <title>Handling Overflows in Programmable Counters</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128513#M6354</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I am new to Programmable counters and i need some advice with handling overflows , i wrote a small kernel module to collect stats for each thread running on the cores and it is working well, i need some advice on how i can handle when the counters overflow.&lt;/P&gt;

&lt;P&gt;I see that i can Performance Monitoring Interrupts when the overflow happens , it would be helpful if someone can explain how i use these interrupts to reset the counters the counters to zero once they reach a certain value so i can avoid overflows and get accurate readings&lt;/P&gt;

&lt;P&gt;Thanks and Regards,&lt;BR /&gt;
	Ravi&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 15:31:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128513#M6354</guid>
      <dc:creator>Ravitheja_G_</dc:creator>
      <dc:date>2017-06-14T15:31:58Z</dc:date>
    </item>
    <item>
      <title>The required approach depends</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128514#M6355</link>
      <description>&lt;P&gt;The required approach depends on what you are trying to measure.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you want measurements by core for any running process, and you can guarantee that the counters cannot increment more than pow(2,48) times between measurements, then you simply disable overflows (by clearing bit 20 in each of the IA32_PERFEVTSEL MSRs) and leave the counters running free.&amp;nbsp;&amp;nbsp; If a measurement looks smaller than a previous measurement, then add pow(2,48) to the difference to correct for the wrap-around.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:30:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128514#M6355</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2017-06-19T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Thank you , That helps a lot</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128515#M6356</link>
      <description>&lt;P&gt;Thank you , That helps a lot&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 16:04:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Handling-Overflows-in-Programmable-Counters/m-p/1128515#M6356</guid>
      <dc:creator>Ravitheja_G_</dc:creator>
      <dc:date>2017-06-19T16:04:40Z</dc:date>
    </item>
  </channel>
</rss>

