<?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 Quote:Thomas Willhalm (Intel) in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105521#M5952</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Thomas Willhalm (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;You can disable the check, but this check is there for a reason. PCM uses the performance&amp;nbsp;counters to monitor the hardware. The NMI watchdog uses the same unit. That's why they can't run at the same time.&lt;/P&gt;

&lt;P&gt;The NMI watchdog is a Linux feature to watch if your system becomes unresponsive (and then take counter actions). Details can be found in the &lt;A href="http://www.mjmwired.net/kernel/Documentation/nmi_watchdog.txt" rel="nofollow"&gt;Linux documentation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Is there any other way to disable the check without modify the PCM's source code? And what will happen when they run at the same time? If running&amp;nbsp; PCM without disable the NMI watchdog will make my system unstable(e.g, a fatal error like kernel panic) or not ?&lt;/P&gt;</description>
    <pubDate>Sun, 13 Dec 2015 11:51:37 GMT</pubDate>
    <dc:creator>Wenqin_C_</dc:creator>
    <dc:date>2015-12-13T11:51:37Z</dc:date>
    <item>
      <title>How can i building Intel PCM without NMI watchdog check?</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105518#M5949</link>
      <description>&lt;P&gt;Since PCM 2.7, pcm check NMI watchdog disable or not first in linux system. So NMI watchdog must be disable before running pcm.x.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Is it possible to build pcm.x without checking NMI watchdog? And how to ?&lt;/P&gt;

&lt;P&gt;What is&amp;nbsp; 'Prevent metric value corruption by Linux NMI watchdog' mean?&amp;nbsp; Is there any detail information?&lt;/P&gt;

&lt;P&gt;I just use pcm.x for gathering CPU's realtime frequency.&amp;nbsp; And i don't want to disable NMI watchdog because i have no idea about what will happen after disable it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 09:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105518#M5949</guid>
      <dc:creator>Wenqin_C_</dc:creator>
      <dc:date>2015-12-11T09:43:14Z</dc:date>
    </item>
    <item>
      <title>You can disable the check,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105519#M5950</link>
      <description>&lt;P&gt;You can disable the check, but this check is there for a reason. PCM uses the performance&amp;nbsp;counters to monitor the hardware. The NMI watchdog uses the same unit. That's why they can't run at the same time.&lt;/P&gt;

&lt;P&gt;The NMI watchdog is a Linux feature to watch if your system becomes unresponsive (and then take counter actions). Details can be found in the &lt;A href="http://www.mjmwired.net/kernel/Documentation/nmi_watchdog.txt"&gt;Linux documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:32:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105519#M5950</guid>
      <dc:creator>Thomas_W_Intel</dc:creator>
      <dc:date>2015-12-11T14:32:48Z</dc:date>
    </item>
    <item>
      <title>There is nothing to prevent</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105520#M5951</link>
      <description>&lt;P&gt;There is nothing to prevent multiple processes from *reading* the performance counters -- I do this all the time.&lt;/P&gt;

&lt;P&gt;The NMI watchdog does more than read the counters -- it programs a counter to overflow on interrupt, and then installs an interrupt handler to respond to that interrupt.&amp;nbsp; The NMI watchdog typically resets the "CPU cycles not halted" counter (using either the fixed-function counter or one of the programmable counters) to (1&amp;lt;&amp;lt;48)-(1&amp;lt;&amp;lt;31), so that it will overflow every ~2 billion cycles.&amp;nbsp;&amp;nbsp; If you are reading the same counter and doing it much more frequently than once every 2 billion cycles, then most of your computed differences between counter readings will be valid.&amp;nbsp; I simply discard any results for which the counter appears to be decreasing (since that means the NMI watchdog reset the counter during my measurement interval).&lt;/P&gt;

&lt;P&gt;Intel performance tools typically also use the "generate interrupt on counter overflow" feature to sample application performance.&amp;nbsp; When the NMI watchdog is running you now have a problem because two different processes want to program the performance counters to generate interrupts on overflow and they want respond to those performance counter overflow interrupts in different ways.&lt;/P&gt;

&lt;P&gt;It might be possible to build a single service routine that checks the performance counter overflow flags to determine which counter overflowed, and then take different actions depending on which counter overflowed -- e.g., if the counter in use by the NMI watchdog overflows, then execute the NMI watchdog's routine, otherwise execute the routine provided by VTune or PCM or whatever is appropriate.&amp;nbsp; I don't think that the Linux kernel provides the facilities to support this mode of operation.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:28:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105520#M5951</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2015-12-11T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Quote:Thomas Willhalm (Intel)</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105521#M5952</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Thomas Willhalm (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;You can disable the check, but this check is there for a reason. PCM uses the performance&amp;nbsp;counters to monitor the hardware. The NMI watchdog uses the same unit. That's why they can't run at the same time.&lt;/P&gt;

&lt;P&gt;The NMI watchdog is a Linux feature to watch if your system becomes unresponsive (and then take counter actions). Details can be found in the &lt;A href="http://www.mjmwired.net/kernel/Documentation/nmi_watchdog.txt" rel="nofollow"&gt;Linux documentation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Is there any other way to disable the check without modify the PCM's source code? And what will happen when they run at the same time? If running&amp;nbsp; PCM without disable the NMI watchdog will make my system unstable(e.g, a fatal error like kernel panic) or not ?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2015 11:51:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-i-building-Intel-PCM-without-NMI-watchdog-check/m-p/1105521#M5952</guid>
      <dc:creator>Wenqin_C_</dc:creator>
      <dc:date>2015-12-13T11:51:37Z</dc:date>
    </item>
  </channel>
</rss>

