<?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 Hi Jose, in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069022#M5273</link>
    <description>&lt;P&gt;Hi Jose,&lt;/P&gt;

&lt;P&gt;PCM collects statistics for all cores in the system. It does not restrict collection to the cores you have specified in the "taskset". PCM will display statistics (on the specified core) from your program and other programs that had been scheduled by the OS on this core. If you want statistics from your program only you need to use a different tool (Linux perf for example) that supports such functionality.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 09:21:11 GMT</pubDate>
    <dc:creator>Roman_D_Intel</dc:creator>
    <dc:date>2016-05-23T09:21:11Z</dc:date>
    <item>
      <title>IPC sampling using PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069017#M5268</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN&gt;I want to get&lt;/SPAN&gt; a lot of&lt;SPAN&gt; samples&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; IPC&lt;SPAN&gt; during&lt;/SPAN&gt; the &lt;SPAN&gt;program execution&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN&gt;The program&lt;/SPAN&gt; &lt;SPAN&gt;is sequential and&lt;/SPAN&gt; &lt;SPAN&gt;lasts for&lt;/SPAN&gt; &lt;SPAN&gt;a few&lt;/SPAN&gt; &lt;SPAN&gt;seconds.&lt;/SPAN&gt; &lt;SPAN&gt;The ideal is to&lt;/SPAN&gt; &lt;SPAN&gt;collect samples&lt;/SPAN&gt; &lt;SPAN&gt;every millisecond&lt;/SPAN&gt; &lt;SPAN&gt;or&lt;/SPAN&gt; &lt;SPAN&gt;every million&lt;/SPAN&gt; retired &lt;SPAN&gt;instructions.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Command line, I do&lt;/P&gt;

&lt;P&gt;./pcm.x 0.001 -csv=resul.txt "-- ./program"&lt;/P&gt;

&lt;P&gt;but I don't know to finish sampling when program ends.&lt;/P&gt;

&lt;P&gt;I think that it is better if the samples are taken into the program, but in this case I don't know to indicate the sampling period.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;JL&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 15:11:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069017#M5268</guid>
      <dc:creator>Jose_L__S_</dc:creator>
      <dc:date>2016-05-20T15:11:36Z</dc:date>
    </item>
    <item>
      <title>J</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069018#M5269</link>
      <description>&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 15:15:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069018#M5269</guid>
      <dc:creator>Jose_L__S_</dc:creator>
      <dc:date>2016-05-20T15:15:08Z</dc:date>
    </item>
    <item>
      <title>you have to remove the "</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069019#M5270</link>
      <description>&lt;P&gt;you have to remove the "&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;./pcm.x 0.001 -csv=resul.txt -- ./program&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;the PCM overhead of collecting samples every ms may be too large. I would recommend to use &amp;gt;= 10 ms sampling period.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 15:21:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069019#M5270</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2016-05-20T15:21:08Z</dc:date>
    </item>
    <item>
      <title>How about starting pcm in the</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069020#M5271</link>
      <description>&lt;P&gt;How about starting pcm in the background and then sending a signal (with "kill") to stop it?&lt;/P&gt;

&lt;P&gt;Please note that you are truely pushing the limits with pcm measurements each millisecond. For larger systems, this is definitely too short.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 15:21:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069020#M5271</guid>
      <dc:creator>Thomas_W_Intel</dc:creator>
      <dc:date>2016-05-20T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Thanks,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069021#M5272</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;I will adjust the period.&lt;/P&gt;

&lt;P&gt;Next question: When using the option -csv, I obtain several IPC values (I&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	suppose that they are associated to the different cores), even if I use&lt;BR /&gt;
	"taskset" for assigning the program to a given core.&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;If I don't use the option -csv, the results offer something like this&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;BR /&gt;
	Core (SKT) | EXEC | IPC&amp;nbsp; | FREQ&amp;nbsp; | AFREQ | L3MISS | L2MISS | L3HIT | L2HIT | L3MPI | L2MPI | TEMP&lt;BR /&gt;
	....&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;BR /&gt;
	.....&lt;/P&gt;

&lt;P&gt;-------------------------------------------------------------------------------------------------&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;BR /&gt;
	SKT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.08&amp;nbsp;&amp;nbsp; 1.32&amp;nbsp;&amp;nbsp; 0.06&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.96&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 197 K&amp;nbsp;&amp;nbsp;&amp;nbsp; 572 K&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.66&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.34 0.00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;BR /&gt;
	SKT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&amp;nbsp;&amp;nbsp; 0.31&amp;nbsp;&amp;nbsp; 0.00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36 K&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.10 0.01&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 58&lt;BR /&gt;
	-------------------------------------------------------------------------------------------------&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;BR /&gt;
	TOTAL&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04&amp;nbsp;&amp;nbsp; 1.31&amp;nbsp;&amp;nbsp; 0.03&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 217 K&amp;nbsp;&amp;nbsp;&amp;nbsp; 609 K&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.64&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.33 0.00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N/A&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	What value should I take?&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	I have also seen the options -nc and -ns of pcm.x command. Could I use to achieve my&lt;BR /&gt;
	goal?&lt;BR /&gt;
	&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;BR /&gt;
	Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 19:35:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069021#M5272</guid>
      <dc:creator>Jose_L__S_</dc:creator>
      <dc:date>2016-05-20T19:35:16Z</dc:date>
    </item>
    <item>
      <title>Hi Jose,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069022#M5273</link>
      <description>&lt;P&gt;Hi Jose,&lt;/P&gt;

&lt;P&gt;PCM collects statistics for all cores in the system. It does not restrict collection to the cores you have specified in the "taskset". PCM will display statistics (on the specified core) from your program and other programs that had been scheduled by the OS on this core. If you want statistics from your program only you need to use a different tool (Linux perf for example) that supports such functionality.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 09:21:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069022#M5273</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2016-05-23T09:21:11Z</dc:date>
    </item>
    <item>
      <title>Hi Roman,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069023#M5274</link>
      <description>&lt;P&gt;Hi Roman,&lt;/P&gt;

&lt;P&gt;I will try it with Linux perf.&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Jose L.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 17:06:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/IPC-sampling-using-PCM/m-p/1069023#M5274</guid>
      <dc:creator>Jose_L__S_</dc:creator>
      <dc:date>2016-05-23T17:06:09Z</dc:date>
    </item>
  </channel>
</rss>

