<?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 Re: Measuring cache misses using VTune in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1482927#M23388</link>
    <description>&lt;P&gt;Hi Thasneem,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the detailed solution. The problem I am faced with is that I am running my analysis on a linux server machine as mentioned above (No GUI). So using CLI how do I enable the hardware events to profile?&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 02:47:17 GMT</pubDate>
    <dc:creator>arjunharikumar</dc:creator>
    <dc:date>2023-05-04T02:47:17Z</dc:date>
    <item>
      <title>Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1481234#M23360</link>
      <description>&lt;P&gt;I'm a beginner to Intel vTune. I wish to compare the cache performances of two versions of a Java application in an Intel Alderlake-S processor. I am a running my benchmarks on a Linux server which has vTune set up and ready. When I profile information using &lt;EM&gt;memory-access&lt;/EM&gt; action I can't find specific sections relating to L1- cache misses or L2- cache misses in the report summary. I am specifically trying to measure the impact on cache for the applications. Is it the right action to use and is there separate knobs to enable these measurements? &lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 12:27:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1481234#M23360</guid>
      <dc:creator>arjunharikumar</dc:creator>
      <dc:date>2023-04-28T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1482779#M23387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for posting in Intel Communities. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please follow the instructions below to get information regarding L1- cache misses or L2- cache misses while profiling the application using Vtune Profiler.&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Run Vtune Profiler as administrator.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click on Configure Analysis option in the home page.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Configure the analysis by following the screenshot below:&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_0-1683134743184.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40965iD846A65A3AE2B87B/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_0-1683134743184.png" alt="ThasneemV_Intel_0-1683134743184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Once the data collection has ended, you can see the analysis results. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. Please select “Hardware Events” option in the drop-down box as shown below.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_1-1683134955909.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40966iFE99DEF6AA5002F0/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_1-1683134955909.png" alt="ThasneemV_Intel_1-1683134955909.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the Summary pane, you will be provided with a list of Hardware event types.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The hardware event&lt;STRONG&gt; "CYCLE_ACTIVITY.STALLS_L1D_MISS"&lt;/STRONG&gt; counts the number of cycles during which the CPU was stalled in response to an L1 data cache miss. &lt;/SPAN&gt;&lt;SPAN&gt;The &lt;STRONG&gt;"CYCLE_ACTIVITY.STALLS_L2_MISS"&lt;/STRONG&gt; hardware event measures the number of cycles during which the processor was stalled due to an L2 cache miss. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These&lt;/SPAN&gt;&lt;SPAN&gt; events may be used to discover cache misses-related performance issues and optimize the application's memory access pattern to reduce cache misses.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5. After you click on the required blue hyperlink in the above step you will be navigated to the Events Count window as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_2-1683135049515.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40967i3250392731C32BA1/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_2-1683135049515.png" alt="ThasneemV_Intel_2-1683135049515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For more information on hardware events, you can refer the below link. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="Hyperlink SCXW243098238 BCX0" href="https://perfmon-events.intel.com/ahybrid.html" target="_blank" rel="noreferrer noopener"&gt;&lt;SPAN class="TextRun Underlined SCXW243098238 BCX0" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW243098238 BCX0" data-ccp-charstyle="Hyperlink"&gt;https://perfmon-events.intel.com/ahybrid.html&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="EOP SCXW243098238 BCX0" data-ccp-props="{&amp;quot;201341983&amp;quot;:0,&amp;quot;335559685&amp;quot;:720,&amp;quot;335559739&amp;quot;:160,&amp;quot;335559740&amp;quot;:259}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We could also see that you’re trying to compare two results. Below are the steps to do the same:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;On Vtune Profiler Welcome page, you can click on the highlighted option:&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_4-1683135238074.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40969i6CFD63FAC8C35A56/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_4-1683135238074.png" alt="ThasneemV_Intel_4-1683135238074.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Your comparison results would look like the screenshot attached below:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_3-1683135110074.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40968i3982964890445F9A/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_3-1683135110074.png" alt="ThasneemV_Intel_3-1683135110074.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Thasneem Vazim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:46:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1482779#M23387</guid>
      <dc:creator>ThasneemV_Intel</dc:creator>
      <dc:date>2023-05-03T17:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1482927#M23388</link>
      <description>&lt;P&gt;Hi Thasneem,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the detailed solution. The problem I am faced with is that I am running my analysis on a linux server machine as mentioned above (No GUI). So using CLI how do I enable the hardware events to profile?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 02:47:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1482927#M23388</guid>
      <dc:creator>arjunharikumar</dc:creator>
      <dc:date>2023-05-04T02:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1483958#M23402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We suggest you run the following commands to perform the analysis in Linux server machine using CLI.&lt;/P&gt;
&lt;P&gt;1.To source the environment variables:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source /opt/intel/oneapi/setvars.sh
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;2.To collect data on memory access analysis:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vtune -collect memory-access -r &amp;lt;path of result directory&amp;gt; -- ./&amp;lt;name of the application&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;For reference: &lt;A href="https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/run-memory-access-analysis-command-line.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/run-memory-access-analysis-command-line.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3.To get hardware events in CSV format:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vtune -report hw-events -result-dir &amp;lt;dir&amp;gt; -report-output &amp;lt;path/filename.csv&amp;gt; -format csv -csv-delimiter comma
&lt;/LI-CODE&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&amp;lt;dir&amp;gt; is the location of the result directory.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&amp;lt;path/filename&amp;gt; is the PATH and filename of the report file to be created.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For reference: &lt;A href="https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/saving-and-formatting-reports.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/saving-and-formatting-reports.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The hardware events "CYCLE_ACTIVITY.STALLS_L1D_MISS" and "CYCLE_ACTIVITY.STALLS_L2_MISS" are given as column names in the output CSV file. These features can be used to measure the impact on cache for the application.&lt;BR /&gt;&lt;BR /&gt;If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Thasneem Vazim&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 11:17:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1483958#M23402</guid>
      <dc:creator>ThasneemV_Intel</dc:creator>
      <dc:date>2023-05-08T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1484415#M23406</link>
      <description>&lt;P&gt;Thanks Thasneem.&lt;/P&gt;
&lt;P&gt;This seems to resolve my issue. Also is there a way I can get a summary of the hw event data rather than function-wise info?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 06:36:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1484415#M23406</guid>
      <dc:creator>arjunharikumar</dc:creator>
      <dc:date>2023-05-09T06:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1485592#M23419</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The summary of the hardware event data can be obtained using the VTune backend.&lt;/P&gt;
&lt;P&gt;Please find the commands below to access VTune backend and view the summary report.&lt;/P&gt;
&lt;P&gt;1. To access VTune Profiler Server using specific TCP port, specify it with the --web-port option as given below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vtune-backend --allow-remote-access --enable-server-profiling --web-port=8080&lt;/LI-CODE&gt;
&lt;P&gt;2. VTune Profiler Server outputs a URL to access the GUI. For the first run, the URL includes a one-time token. The output will look like the screenshot attached below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_0-1684126642119.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/41250i48FE313D8FA206EC/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_0-1684126642119.png" alt="ThasneemV_Intel_0-1684126642119.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Open the highlighted URL in a web browser.&lt;/P&gt;
&lt;P&gt;4. Set a Passphrase in the Set Passphrase dialog box.&lt;/P&gt;
&lt;P&gt;Now you will be redirected to VTune backend similar to GUI in the webpage as shown in the screenshot below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThasneemV_Intel_1-1684126676028.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/41251i97472C75FC33DCCE/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ThasneemV_Intel_1-1684126676028.png" alt="ThasneemV_Intel_1-1684126676028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For reference:&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/web-server-ui.html#GUID-82A68996-3964-4F4A-832F-1C3A672583F5" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2023-0/web-server-ui.html#GUID-82A68996-3964-4F4A-832F-1C3A672583F5&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Once the GUI is obtained, you can get the summary of hardware events by following the steps provided earlier in this thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As your initial issue is resolved and we have provided steps to view summary of hardware events, please let us know if we can discontinue monitoring this thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Thasneem Vazim&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 05:00:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1485592#M23419</guid>
      <dc:creator>ThasneemV_Intel</dc:creator>
      <dc:date>2023-05-15T05:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1486447#M23425</link>
      <description>&lt;P&gt;Thanks Thasneem. This is much helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 02:22:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1486447#M23425</guid>
      <dc:creator>arjunharikumar</dc:creator>
      <dc:date>2023-05-16T02:22:56Z</dc:date>
    </item>
    <item>
      <title>Re:Measuring cache misses using VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1486847#M23428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thasneem Vazim&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 May 2023 05:11:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Measuring-cache-misses-using-VTune/m-p/1486847#M23428</guid>
      <dc:creator>ThasneemV_Intel</dc:creator>
      <dc:date>2023-05-17T05:11:41Z</dc:date>
    </item>
  </channel>
</rss>

