<?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 Can you share with me your in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929382#M6887</link>
    <description>&lt;P&gt;Can you share with me your exact command line? &amp;nbsp;You can rename the app, if you would rather not share that info. &amp;nbsp;I just want to see what options you provided to amplxe-cl. &amp;nbsp;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2013 22:26:35 GMT</pubDate>
    <dc:creator>David_A_Intel1</dc:creator>
    <dc:date>2013-06-24T22:26:35Z</dc:date>
    <item>
      <title>Stopping Analysis From the Command Line</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929379#M6884</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to use vtune to analyze database perfromance using amplxe-cl. I want to attach vtune to the running databse process. This much seems to work for me using the -target-process=&amp;lt;process name&amp;gt; command. I am trying to get a report for each query, however, and I would like to start vtune before each query and stop it after each query. My problem is that I cannot figure out how to stop amplxe-cl. Whenever I attach it to a process, it only stops running and generates results when that process ends. I can pause in the gui, but I am trying to set up an automated system. Is there a way to stop amplxe from the command line?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 18:19:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929379#M6884</guid>
      <dc:creator>Marcel_Kornacker</dc:creator>
      <dc:date>2013-06-21T18:19:57Z</dc:date>
    </item>
    <item>
      <title>Hi Marcel:</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929380#M6885</link>
      <description>&lt;P&gt;Hi Marcel:&lt;/P&gt;
&lt;P&gt;Yes! &amp;nbsp;See the "-command" option. &amp;nbsp;From another terminal, execute the command 'amplx-cl -command stop -r &amp;lt;results-dir&amp;gt;', where &amp;lt;results-dir&amp;gt; is the same one used in the command where you attached to the process.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 18:24:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929380#M6885</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2013-06-21T18:24:09Z</dc:date>
    </item>
    <item>
      <title>Thanks you for your speedy</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929381#M6886</link>
      <description>&lt;P&gt;Thank you for your speedy reply. the stop command works, but I am still running into issues. I am getting this error:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;amplxe: Warning: Error 0x40000026 (Database interface error) -- Cannot run data transformation `Compute CPU Usage'.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This error seems to be affecting the ability to generate a report, becuase the report is basically empty.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Summary&lt;BR /&gt;-------&lt;BR /&gt;Elapsed Time: 0.000&lt;BR /&gt;amplxe: Executing actions 100 % done&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I tried researching this error, but couldn't find any post with this exact error. Do you have any insight? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 19:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929381#M6886</guid>
      <dc:creator>Marcel_Kornacker</dc:creator>
      <dc:date>2013-06-21T19:56:00Z</dc:date>
    </item>
    <item>
      <title>Can you share with me your</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929382#M6887</link>
      <description>&lt;P&gt;Can you share with me your exact command line? &amp;nbsp;You can rename the app, if you would rather not share that info. &amp;nbsp;I just want to see what options you provided to amplxe-cl. &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2013 22:26:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929382#M6887</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2013-06-24T22:26:35Z</dc:date>
    </item>
    <item>
      <title>In the first terminal I ran</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929383#M6888</link>
      <description>&lt;P&gt;In the first terminal I ran the following commands:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[root@a2319 leblang]# source /opt/intel/vtune_amplifier_xe_2013/amplxe-vars.sh&lt;BR /&gt;Copyright (C) 2009-2013 Intel Corporation. All rights reserved.&lt;BR /&gt;Intel(R) VTune(TM) Amplifier XE 2013 (build 290588)&lt;BR /&gt;[root@a2319 leblang]# amplxe-cl -collect hotspots -r /home/leblang/databaseResults -target-process=impalad&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I then opened an impala shell (my database) and ran some queries. I then opened a third terminal and ran the following command:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[leblang@a2319 ~]$ amplxe-cl -command stop -r /home/leblang/databaseResults&lt;BR /&gt;Collection has stopped.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;After I ran that command, this was the output in the first terminal:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;amplxe: Using result path `/home/leblang/databaseResults'&lt;BR /&gt;amplxe: Executing actions 24 % Processing profile metrics and debug information&lt;BR /&gt;amplxe: Warning: Error 0x40000026 (Database interface error) -- Cannot run data transformation `Compute CPU Usage'.&lt;BR /&gt;amplxe: Executing actions 50 % Generating a report&lt;/P&gt;
&lt;P&gt;Collection and Platform Info&lt;BR /&gt;----------------------------&lt;BR /&gt;Parameter databaseResults&lt;BR /&gt;------------------------ -----------------------------------------------------&lt;BR /&gt;Application Command Line &lt;BR /&gt;Computer Name a2319.halxg.cloudera.com&lt;BR /&gt;Environment Variables &lt;BR /&gt;MPI Process Rank &lt;BR /&gt;Operating System 2.6.32-220.23.1.el6.x86_64 CentOS release 6.2 (Final)&lt;BR /&gt;Result Size 1014093&lt;BR /&gt;User Name&lt;/P&gt;
&lt;P&gt;CPU&lt;BR /&gt;---&lt;BR /&gt;Parameter databaseResults&lt;BR /&gt;----------------- -----------------------------------------&lt;BR /&gt;Frequency &lt;BR /&gt;Logical CPU Count 16&lt;BR /&gt;Name Intel(R) Xeon(R) / Core i7 980X Processor&lt;/P&gt;
&lt;P&gt;Summary&lt;BR /&gt;-------&lt;BR /&gt;Elapsed Time: 0.000&lt;BR /&gt;amplxe: Executing actions 100 % done&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My machine is running CentOS 6.2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2013 17:51:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929383#M6888</guid>
      <dc:creator>Marcel_Kornacker</dc:creator>
      <dc:date>2013-06-25T17:51:19Z</dc:date>
    </item>
    <item>
      <title>My comments are:</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929384#M6889</link>
      <description>&lt;P&gt;My comments are:&lt;/P&gt;
&lt;P&gt;1. You have to use user-account which has permission to access your database process.&lt;/P&gt;
&lt;P&gt;2. Some processes work on system mode, you may need to use lightweight-hotspots instead of hotspots&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I give an example to work commands on my side, it may help you to dig out root-cause on your side.&lt;/P&gt;
&lt;P&gt;[root@snb01 problem_report]# amplxe-cl -collect lightweight-hotspots -target-pid 30403 -r peter001 &amp;amp;&lt;BR /&gt;[1] 2502&lt;BR /&gt;[root@snb01 problem_report]# amplxe-cl -command pause -r peter001&lt;BR /&gt;Collection has paused.&lt;BR /&gt;[root@snb01 problem_report]# amplxe-cl -command resume -r peter001&lt;BR /&gt;Collection has resumed.&lt;BR /&gt;[root@snb01 problem_report]# amplxe-cl -command detach -r peter001&lt;BR /&gt;Collection has detached.&lt;BR /&gt;amplxe: Using result path `/home/peter/problem_report/peter001'&lt;BR /&gt;amplxe: Executing actions 35 % Resolving information for `libc-2.3.4.so' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/opt/intel/vtune_amplifier_xe_2013/lib64/pinruntime/glibc/libc-2.3.4.so'.&lt;BR /&gt;amplxe: Executing actions 50 % Generating a report&lt;/P&gt;
&lt;P&gt;Result Info&lt;BR /&gt;-----------&lt;BR /&gt;Parameter peter001&lt;BR /&gt;------------------------ ---------------------------------------------------------------------------&lt;BR /&gt;Application Command Line &lt;BR /&gt;CPU Name Intel(R) Core(TM) Processor 2xxx Series&lt;BR /&gt;Computer Name snb01.sh.intel.com&lt;BR /&gt;Environment Variables &lt;BR /&gt;Frequency 3400000000&lt;BR /&gt;Logical CPU Count 8&lt;BR /&gt;MPI Process Rank &lt;BR /&gt;Operating System 2.6.32-71.el6.x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago)&lt;BR /&gt;Result Size 4739301&lt;BR /&gt;User Name root&lt;/P&gt;
&lt;P&gt;Summary&lt;BR /&gt;-------&lt;BR /&gt;Elapsed Time: 37.187&lt;BR /&gt;CPU Usage: 0&lt;BR /&gt;amplxe: Executing actions 100 % done&lt;/P&gt;
&lt;P&gt;[1]+ Done amplxe-cl -collect lightweight-hotspots -target-pid 30403 -r peter001&lt;/P&gt;
&lt;P&gt;[root@snb01 problem_report]# amplxe-cl -report hotspots -r peter001&lt;BR /&gt;amplxe: Using result path `/home/peter/problem_report/peter001'&lt;BR /&gt;amplxe: Executing actions 50 % Generating a report &lt;BR /&gt;Function Module CPU Time:Self&lt;BR /&gt;----------------------- ------------- -------------&lt;BR /&gt;finish_task_switch vmlinux 0.001&lt;BR /&gt;__libc_poll libc-2.3.4.so 0.001&lt;BR /&gt;_spin_unlock_irqrestore vmlinux 0.001&lt;BR /&gt;copy_from_user vmlinux 0.001&lt;BR /&gt;dput vmlinux 0.001&lt;BR /&gt;estimate_accuracy vmlinux 0.001&lt;BR /&gt;hrtimer_init vmlinux 0.001&lt;BR /&gt;hrtimer_try_to_cancel vmlinux 0.001&lt;BR /&gt;set_normalized_timespec vmlinux 0.001&lt;BR /&gt;do_sys_poll vmlinux 0&lt;BR /&gt;free_poll_entry vmlinux 0&lt;BR /&gt;amplxe: Executing actions 100 % done&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 02:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929384#M6889</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2013-06-26T02:51:00Z</dc:date>
    </item>
    <item>
      <title>I am running amplxe-cl as</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929385#M6890</link>
      <description>&lt;P&gt;I am running amplxe-cl as root which I know has access to the database process. I tried running lightweight hotspots and got the following errror:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[root@a2319 leblang]# amplxe-cl -collect lightweight-hotspots -r /home/leblang/peterTest -target-process=impalad&lt;BR /&gt;amplxe: Error: Cannot start data collection. nmi_watchdog interrupt capability is enabled on your system, which prevents collecting accurate event-based sampling data. Please disable nmi_watchdog interrupt or see the Troubleshooting section of the product documentation for details.&lt;BR /&gt;amplxe: Warning: On some systems based on the Intel microarchitecture code name Nehalem / Westmere with C-states enabled, this analysis type may cause system hanging due to a known hardware issue (see errata AAJ134 in &lt;A href="http://download.intel.com/design/processor/specupdt/320836.pdf)" target="_blank"&gt;http://download.intel.com/design/processor/specupdt/320836.pdf)&lt;/A&gt;. To avoid this situation, disable all "Cn(ACPI Cn) report to OS" BIOS options before sampling with VTune Amplifier on such systems.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you think that my original error could be from this BIOS issue? How should I proceed from here? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 21:03:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929385#M6890</guid>
      <dc:creator>Marcel_Kornacker</dc:creator>
      <dc:date>2013-06-26T21:03:16Z</dc:date>
    </item>
    <item>
      <title>I changed the settings on nmi</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929386#M6891</link>
      <description>&lt;P&gt;I changed the settings on nmi_watchdog and was able to get the lightweight hotspots to work.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[root@a2319 leblang]# echo 0 &amp;gt; /proc/sys/kernel/nmi_watchdog &lt;BR /&gt;[root@a2319 leblang]# source /opt/intel/vtune_amplifier_xe_2013/amplxe-vars.sh&lt;BR /&gt;Copyright (C) 2009-2013 Intel Corporation. All rights reserved.&lt;BR /&gt;Intel(R) VTune(TM) Amplifier XE 2013 (build 290588)&lt;BR /&gt;[root@a2319 leblang]# amplxe-cl -collect lightweight-hotspots -r /home/leblang/peterTest -target-process=impalad&lt;BR /&gt;amplxe: Warning: On some systems based on the Intel microarchitecture code name Nehalem / Westmere with C-states enabled, this analysis type may cause system hanging due to a known hardware issue (see errata AAJ134 in &lt;A href="http://download.intel.com/design/processor/specupdt/320836.pdf)" target="_blank"&gt;http://download.intel.com/design/processor/specupdt/320836.pdf)&lt;/A&gt;. To avoid this situation, disable all "Cn(ACPI Cn) report to OS" BIOS options before sampling with VTune Amplifier on such systems.&lt;BR /&gt;amplxe: Using result path `/home/leblang/peterTest'&lt;BR /&gt;amplxe: Executing actions 16 % Resolving information for `libstdc++.so.6.0.13' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/usr/lib64/libstdc++.so.6.0.13'.&lt;BR /&gt;amplxe: Executing actions 16 % Resolving information for `libc-2.12.so' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/lib64/libc-2.12.so'.&lt;BR /&gt;amplxe: Executing actions 17 % Resolving information for `nf_conntrack' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/lib/modules/2.6.32-220.23.1.el6.x86_64/kernel/net/netfilter/nf_conntrack.ko'.&lt;BR /&gt;amplxe: Executing actions 17 % Resolving information for `libc-2.3.4.so' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/opt/intel/vtune_amplifier_xe_2013/lib64/pinruntime/glibc/libc-2.3.4.so'.&lt;BR /&gt;amplxe: Executing actions 17 % Resolving information for `libm-2.12.so' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/lib64/libm-2.12.so'.&lt;BR /&gt;amplxe: Executing actions 18 % Resolving information for `ip_tables' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/lib/modules/2.6.32-220.23.1.el6.x86_64/kernel/net/ipv4/netfilter/ip_tables.ko'.&lt;BR /&gt;amplxe: Executing actions 19 % Resolving information for `librt-2.12.so' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/lib64/librt-2.12.so'.&lt;BR /&gt;amplxe: Executing actions 19 % Resolving information for dangling locations &lt;BR /&gt;amplxe: Warning: Cannot locate file `apwr3_1.ko'.&lt;BR /&gt;amplxe: Executing actions 20 % Resolving information for `libpthread-2.12.so' &lt;BR /&gt;amplxe: Warning: Cannot locate symbols for file `/lib64/libpthread-2.12.so'.&lt;BR /&gt;amplxe: Executing actions 50 % Generating a report&lt;/P&gt;
&lt;P&gt;Collection and Platform Info&lt;BR /&gt;----------------------------&lt;BR /&gt;Parameter peterTest&lt;BR /&gt;------------------------ -----------------------------------------------------&lt;BR /&gt;Application Command Line &lt;BR /&gt;Computer Name a2319.halxg.cloudera.com&lt;BR /&gt;Environment Variables &lt;BR /&gt;MPI Process Rank &lt;BR /&gt;Operating System 2.6.32-220.23.1.el6.x86_64 CentOS release 6.2 (Final)&lt;BR /&gt;Result Size 9745428&lt;BR /&gt;User Name root&lt;/P&gt;
&lt;P&gt;CPU&lt;BR /&gt;---&lt;BR /&gt;Parameter peterTest&lt;BR /&gt;----------------- -----------------------------------------&lt;BR /&gt;Frequency 2130000000&lt;BR /&gt;Logical CPU Count 16&lt;BR /&gt;Name Intel(R) Xeon(R) / Core i7 980X Processor&lt;/P&gt;
&lt;P&gt;Summary&lt;BR /&gt;-------&lt;BR /&gt;Elapsed Time: 50.295&lt;BR /&gt;CPU Usage: 0&lt;/P&gt;
&lt;P&gt;Event summary&lt;BR /&gt;-------------&lt;BR /&gt;Hardware Event Type Hardware Event Count:Self Hardware Event Sample Count:Self Events Per Sample&lt;BR /&gt;----------------------- ------------------------- -------------------------------- -----------------&lt;BR /&gt;CPU_CLK_UNHALTED.THREAD 84000000 42 2000000&lt;BR /&gt;INST_RETIRED.ANY 18000000 9 2000000&lt;BR /&gt;CPU_CLK_UNHALTED.REF_P 8200000 82 100000&lt;BR /&gt;amplxe: Executing actions 100 % done&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am still fairly new to vtune and there are a lot of warnings that were generated in this report. Do you expect this to affect my ability to use vtune?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 00:44:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929386#M6891</guid>
      <dc:creator>Marcel_Kornacker</dc:creator>
      <dc:date>2013-06-27T00:44:45Z</dc:date>
    </item>
    <item>
      <title>I'm glad that you can attach</title>
      <link>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929387#M6892</link>
      <description>&lt;P&gt;I'm glad that you can attach to running process basically (after disabling NMI Watchdog Timer). Furthermore you can use "pause", "resume" and "detach" to control data collection, such as I did -&lt;/P&gt;
&lt;P&gt;# amplxe-cl -command pause -r peter001&lt;BR /&gt;# amplxe-cl -command resume -r peter001&lt;BR /&gt;# amplxe-cl -command detach -r peter001&lt;/P&gt;
&lt;P&gt;Don't worry about warning message -&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&amp;nbsp;C-State issue and asked to disable all "Cn(ACPI Cn) report to OS" in BIOS. This is seldom case, I never met this on NHM machine. Just ignore it.&lt;/P&gt;
&lt;P&gt;2. &amp;nbsp;Can not resolve in some libraries, because these used libraries has no symbol info - all hot addresses will not be located in hot functions, use [libname] instead of function names. However It will not impact on results on your program, it you used "-g" option to build.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 02:33:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Stopping-Analysis-From-the-Command-Line/m-p/929387#M6892</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2013-06-27T02:33:18Z</dc:date>
    </item>
  </channel>
</rss>

