Win 7, Vtune 2017 update 3 ... cannot do first hot spot ... "serious problem"

Win 7, Vtune 2017 update 3 ... cannot do first hot spot ... "serious problem"

I have created a simple C++ app called timeWaster. Built it using MSVC  19. This app runs fine in a command window created by Parallel Studio. (compiled using cl -EHsc -Zi timeWaster.cpp)

Sample run:

D:\Users\...\VTune\timeWaster>timeWaster64.exe

a=3.21061e+006

primeCnt=348844

11.2066  seconds

Done

Launch Vtune with admin rights.

Go to configure, select “Launch Application”, browse to the timeWaster64.exe, set working dir to same.

Toggle over to the run screen, “Basic Hotspots” selected, everything set to default. Hit start …

Up pops a command window … that stays empty (this window sticks around till killed with task master, timeWaster process still running 0% cpu).

Then within seconds of hitting start:

Intel VTune Amplifier XE 2017 has faced a serious problem

1/11/2018 6:21:45 AM  Cannot open data: Intel VTune Amplifier XE 2017 has faced a serious problem.

Error 0x40000024 (No data) -- No data is collected. Possible reasons:

 - Workload is too small. No samples are collected.

 - The application environment is not specified correctly.

 See the Troubleshooting help topic for more details. 

Trouble shooting area of of no help so I am here.

So where do I start tracking this down? I have already considered dll dependencies and pruned that list down to a minimum.

 

44 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Carl,

could you please do few tests?

first of all try to launch your application from windows command line (not VS), just open cmd.exe, go to the directory of your application and launch it.

If it works ok please try the following collections from the same command line:

1. <vtune_install_dir>\bin64\amplxe-cl -c hotspots timeWaster64.exe

2. <vtune_install_dir>\bin64\amplxe-cl -c advanced-hotspots timeWaster64.exe

3. <vtune_install_dir>\bin64\pin.exe --timeWaster64.exe

BR,

Vladimir

Am also facing same issue..

 

Any solution ?

 

Thanks,

venkatesh,

Hi We are facing serious problems with Vtune

Please help.

 

 

Hi..

Can you hep us, we are not able to solve the issue..

Thanks,

Venkatesh.

Hi Venkatesh,

please describe the issue you faced with.

If it looks exactly like Carl's issue I'll ask you to perform the same checks as I wrote above.

BR,

Vladimir

Hi,

Thanks VLADIMIR for your suggestion.

 

i tried

for basic hotspot and advanced hotspot it is working as below from both cli and vtune gui:

===================================================================

working elaspsed time is like => 0.001 ms.

Not sure why elaspsed time is so less, am running application and it continues to run,

vtune also continues to run(Say for 2-3 minutes) , but once it stopped elapsed time is too less.

 

But for hardware events earlier error is coming.

 

Please help what am missing.

 

Thanks,

Venkatesh.

 

Hi,

could you please provide collected results and a reproducer if it is possible?

BR,

Vladimir

Hi,

Updated with folder of results observed.

Thanks,

venkatesh.

Attachments: 

AttachmentSize
Downloadapplication/x-tar r039runsa0.tar30 KB

Hi,

based on the result I see that you try to use remote collection with attach to some process.

First of all I recommend to check VTune directly on the target machine without remote flow. I think the same hotposts and advanced-hotspots analyses will be enough for this. 

Also please try the latest and greatest VTune version.

BR,

Vladimir

Hi..

i observed during installation below things, will that affect.

--------------------------------------------------------------------------------

Missing optional prerequisites
-- The system is running in the virtual environment. Sampling drivers will not
be installed.
-- Driver build options are incomplete. Drivers cannot be built.

We are try to run vtune in ubuntu VM Linux host.

 

Thanks,

Venkatesh.

 

Hi Venkatesh,

If you want to run "Basic hotspots" analysis inside of VM, you don't need no drivers, so please continue the installation despite this error message.

 

Regards,

Alexander

Hi,

Basic hotspots working as expected, only "advanced hostpots " and "hardware vents" have issue..

What could be the problem ?

Thanks,

Venkatesh.

Hi,

could someone help me, what is real problem.. ?

 

Thanks,

Venkatesh.

Hi ,

We are blocked from 15 days...could some one help us to find the real problem..

Thanks,

Venkatesh.

Hi,

Any one from intel can suggest something..

We are waiting..

Thanks,

Venkatesh.

Hi,

Could you describe your problem and usecase. Unfortunately I don't understand anything from the thread.

1) What OS do you use?
2) Do you run host-target analysis?
3) What type of VM do you use?
4) What error do you have?
5) What VTune Amplifier version do you use?

- Pavel

 

Hi,

Could you describe your problem and usecase. Unfortunately I don't understand anything from the thread.

1) What OS do you use?

   ubuntu 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

2) Do you run host-target analysis?
   
   PATH=$PATH:/opt/intel/vtune_amplifier_xe_2017.4.0.518798/bin64/
   VTUNE_AMPLIFIER_XE_2017_DIR="/opt/intel/vtune_amplifier_xe_2017.4.0.518798"
   source /opt/intel/vtune_amplifier_xe_2017.4.0.518798/amplxe-vars.sh
   export DISPLAY=Windows-ip:0
   amplxe-gui &

   We are running in gui in target and that gui appears on windows x server , and their by collecting logs.

   another  method:
   ==================
  1. Windows machine has Xserver run on.
     Remoute descktop:
  2.Vtune is installed on it2-17 gateway
    export DISPLAY=windows_ip:0
    source /opt/intel/vtune_amplifier_xe_2017/amplxe-vars.sh
    run amplxe-gui&
    You shall see gui started on Windows Machine 

 3.Configure target
   Configure Analisys Type
   Run profile
      
   in both methods we tried.

3) What type of VM do you use?
  
  ubuntu virtual VM for analysis.

4) What error do you have?

 1. when we run on host ->target i am not seeing any hardware events anlayisi option in vtune gui.
 2. when i try second method method below wrror comes.
       
    intel VTune Amplifier XE 2017 has faced a serious problem

    1/11/2018 6:21:45 AM  Cannot open data: Intel VTune Amplifier XE 2017 has faced a serious problem.

   Error 0x40000024 (No data) -- No data is collected. Possible reasons:

    - Workload is too small. No samples are collected.

    - The application environment is not specified correctly.

   See the Troubleshooting help topic for more details. 

3. elspsed time is interms of milli seconds , say(0.001 ms). something is stopping the vtune application collecting info.

4. statistsics not collecting properly.

5. for basic hotspot working properly, no error displayed and elapsed time almost same as running time, so data displayed correctly.

 
        

5) What VTune Amplifier version do you use?

 we are using this version : vtune_amplifier_xe_2017.4.0.518798

6) We installed manually the sep drivers from built locally.

  ./insmod-sep -r
 

Problem is that not able to collect hardware events and advanced hotspots.

 

Please help....

Thanks,
venkatesh.

Could you collect information from your VM?

1) dmesg | grep -i pmu
I interesting in boot time dmesg. So check that dmesg head timestamps starts from 0.
2) cat /proc/cpuinfo
for one core
3) perf -list
4) cat /proc/cmdline
5) vtune_amplifier_path/bin64/sep -event-list

Some output may be large enough please attach them as files.

Am I right that you run VTune Amplifier in VM? Did you try to establish ssh connection type in VTune Amplifier? (This connection type better for performance measurement comparing with x-forwarding)

- Pavel

Hi..

Yes via ssh am connecting to device from vtune gui and  trying to check analysis.

 

Thanks,

Venkatesh. 

Attachments: 

AttachmentSize
Downloadapplication/zip vtune_ques.zip5.4 KB

Hi,

Please find also missed one in attachment.

 

root@it2-17-sfcgw-ubuntu:~/target_drivers/sepdk/src# dmesg | grep pmu
[  630.609491] socperf2_0: SocPerf Driver: detected 6 CPUs in lwpmudrv_Load
[  728.159799]  lwpmudrv_Read_MSR+0x2c/0x40 [sep4_1]
[  728.407064]  lwpmudrv_Write_Op+0x3c/0x60 [sep4_1]
[  728.407067]  lwpmudrv_Write_Op+0x3c/0x60 [sep4_1]
[16973.551232] socperf2_0: SocPerf Driver: detected 6 CPUs in lwpmudrv_Load
[18870.067548] socperf2_0: SocPerf Driver: detected 6 CPUs in lwpmudrv_Load
root@it2-17-sfcgw-ubuntu:~/target_drivers/sepdk/src#

 

Thanks,

venkatesh.

 

Hi,

Please reply ASAP,  am waiting for any suggestion.

 

Thanks,

venkatesh. 

It's very interesting. I thought that you have a problem with PMU settings in your KVM. But looks like it's ok.

1) Could you get command line from gui for running analysis?
2) Let's run collection without sep driver. Please unload it and try to start collection. It will use perf for hardware events collection

Hi ok..

I will try.. wil get back in few minutes.

Thanks,

Venkatesh.

 

{code}

root@ubuntu:~/target_drivers/sepdk/src# ./rmmod-sep

Removing sep4_1 driver from the kernel ... done.
Deleting /dev/sep4_1 devices ... done.
The sep4_1 driver has been successfully unloaded.
Removing vtsspp driver from the kernel ... done.
The vtsspp driver has been successfully unloaded.
Removing socperf2_0 driver from the kernel ... done.
Deleting /dev/socperf2_0 devices ... done.
The socperf2_0 driver has been successfully unloaded.
No driver needs PMU arbitration anymore: the PAX service can be safely removed.
Attempting to stop PAX service ...
Removing pax driver from the kernel ... done.
Deleting previously created /dev/pax device ... done.
The pax driver has been successfully unloaded.
PAX service has been stopped.
root@iubuntu:~/target_drivers/sepdk/src# amplxe-cl -target-tmp-dir=/root/fp-vtune -collect advanced-hotspots -knob collection-detail=stack-sampling -target-process=*process_name* -r=1st-run-f -target-tmp-dir=/root/fp-vtune -data-limit=2048
amplxe: Error: Cannot enable Hardware Event-based Sampling: problem with the driver (sep*/sepdrv*). Check that the driver is running and the driver group is in the current user group list. See "Building and Managing the Sampling Driver" help topic for further details.
amplxe: Error: Cannot enable advanced capabilities for Hardware Event-based Sampling: problem with the driver (vtss/vtsspp). Check that the driver is running and the driver group is in the current user group list. See "Building and Managing the Sampling Driver" help topic for further details.
root@it2-17-sfcgw-ubuntu:~/target_drivers/sepdk/src#

{code}

Hi,

its asking for sampling drivers , without that we are notr able to run advanced hot spots or hardware events.

i tried to run via "driverless perf option" => but not sure what's wrong , it is not running.

we had installed for this purpose.

-ubuntu:~/target_drivers/sepdk/src# perf -v
perf version 4.13.13
-ubuntu:~/target_drivers/sepdk/src#

 

Thanks,

Venkatesh. 

Without  -knob collection-detail=stack-sampling  you will be able to collect.

According to previous information. I think you will not able to use sep due to errors on Writing/Reading msr's. 
With perf-based collection it's impossible to collect stacks. 

For what reason you need Event Based sampling with stacks? Basic hotspots provide the stacks based on another mechanism.

- Pavel

Hi,

Please see below.

 

 

ubuntu:~/target_drivers/sepdk/src# amplxe-cl -target-tmp-dir=/root/fp-vtune -collect advanced-hotspots  -target-process=process_name -r=1st-run-f -target-tmp-dir=/root/fp-vtune -data-limit=2048
amplxe: Error: Cannot enable Hardware Event-based Sampling: problem with the driver (sep*/sepdrv*). Check that the driver is running and the driver group is in the current user group list. See "Building and Managing the Sampling Driver" help topic for further details.
amplxe: Error: Cannot enable advanced capabilities for Hardware Event-based Sampling: problem with the driver (vtss/vtsspp). Check that the driver is running and the driver group is in the current user group list. See "Building and Managing the Sampling Driver" help topic for further details.
ubuntu:~/target_drivers/sepdk/src#

Thanks,

Venkatesh.

 

What is output of <VTune Amplifier install path>/bin64/amplxe-perf list ?

Hi,

Please find the command output.

Thanks,

venkatesh.

Attachments: 

AttachmentSize
Downloadtext/plain amplxe_perf_list.txt4.49 KB

Hi,

Please find the command output.

Thanks,

venkatesh.

Attachments: 

AttachmentSize
Downloadtext/plain amplxe_perf_list.txt4.49 KB

Hi,

Please find the command output.

Thanks,

venkatesh.

Attachments: 

AttachmentSize
Downloadtext/plain amplxe_perf_list.txt4.49 KB

I recommend you to download new version of VTune Amplifier...

Last try. Do this command also failed with the output?
amplxe-cl -collect advanced-hotspots -- find /tmp

ubuntu:~/vtune_amplifier_2018_update3# amplxe-cl -collect advanced-hotspots -target-process=fastpath  -- find /tmp
amplxe: Warning: To profile kernel modules during the session, make sure they are available in the /lib/modules/kernel_version/ location.
amplxe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: amplxe-cl -r /root/vtune_amplifier_2018_update3/r000ah -command stop.
^Camplxe: Collection detached.
amplxe: Collection stopped.
amplxe: Using result path `/root/vtune_amplifier_2018_update3/r000ah'
amplxe: Executing actions 20 % Resolving information for `libxylog.so'
amplxe: Warning: Cannot locate debugging information for file `/opt/nec/vcpe/lib64/libxylog.so'.
amplxe: Executing actions 20 % Resolving information for `vmlinux'
amplxe: Warning: Cannot locate debugging information for the Linux kernel. Source-level analysis will not be possible. Function-level analysis will be limited to kernel symbol tables. See the Enabling Linux Kernel Analysis topic in the product online help for instructions.
amplxe: Executing actions 21 % Resolving information for `libstdc++.so.6.0.21'
amplxe: Warning: Cannot locate debugging information for file `/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21'.
amplxe: Executing actions 22 % Resolving information for `kvm.ko'
amplxe: Warning: Cannot locate debugging information for file `/lib/modules/4.13.0-26-generic/kernel/arch/x86/kvm/kvm.ko'.
amplxe: Executing actions 75 % Generating a report
Collection and Platform Info
----------------------------
Parameter                 r000ah                                                                                                                                                                              
------------------------  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Application Command Line  find                                                                                                                                                                                
Operating System          4.13.0-26-generic NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
Computer Name             it2-17-sfcgw-ubuntu                                                                                                                                                                 
Result Size               46467703                                                                                                                                                                            
Collection start time     16:05:38 19/06/2018 UTC                                                                                                                                                             
Collection stop time      16:05:51 19/06/2018 UTC                                                                                                                                                             
Collector Type            Driverless Perf system-wide sampling                                                                                                                                                

CPU
---
Parameter          r000ah
-----------------  ------------------------------------------------------
Name               Intel(R) Xeon(R) E5/E7 v3 Processor code named Haswell
Frequency          2299998030
Logical CPU Count  6

Summary
-------
Elapsed Time:             12.607
Paused Time:              0.0
CPU Time:                 34.963
Average CPU Utilization:  2.914
CPI Rate:                 0.594

Event summary
-------------
Hardware Event Type                 Hardware Event Count:Self  Hardware Event Sample Count:Self  Events Per Sample
----------------------------------  -------------------------  --------------------------------  -----------------
CPU_CLK_UNHALTED.THREAD                           79980200000                             34774  2300000
CPU_CLK_UNHALTED.REF_TSC                          80414900000                             34963  2300000
INST_RETIRED.ANY                                 134651200000                             58544  2300000
CPU_CLK_UNHALTED.REF_XCLK                          3494004817                             34939  100003
CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE                 1726851804                             17268  100003
amplxe: Executing actions 100 % done
-ubuntu:~/vtune_amplifier_2018_update3#

I think this looks ok with this..

Thanks,

Venkatesh.

Am trying to get hardware event analysis, my xsrever is stopping..

am checking...

Thanks,

VEnkatesh.

Hi,

One issue i am observing is "Hardware event analysis"  option not shown in gui..

Any reason ?

 

Thanks,

Venkatesh. 

Hi,

If i run amplex-gui , am not seeing any "hardware events anlayisi option in vtune gui ".

 

Please guide me how to get that.

 

Thanks,

Venkatesh.

Hi,

Any suggestions ?

 

Thanks,

Venkatesh.

Hi,

Please some one help, Please we need to do complete this task.

issues:

=====

1. hardware vents option not coming.

2. my xserver crashing once i start and stop  amplxe-gui.

Thanks,

Venkatesh.

Hi,

Please read documentation about event based sampling:
https://software.intel.com/en-us/vtune-amplifier-help-hardware-event-bas...

There is not hardware events option - it's hided from user by analysis types.

Hi,

2. my xserver crashing once i start and stop  amplxe-gui.

or

once i  import the result from the command line.

Any suggestions.

Please suggest, atelast we can analyse some thing using vtune...

otherwise this tool is not @ all useful for us.

Please sugeest some help for issues faced, so that we can use vtune.

Am  trying to get some results from past 15 days, but because of so may issues, i was not able to get result.

Thanks,

Venkatesh.

 

 

Try to run the VTune Amplifier GUI via VNC. I think x-forwarding may be unstable.

- Pavel

Hi Venkatesh,

To run Advanced Hotspots you should expose host's PMU counters to your VM.

Btw, what kind if hypervisor (KVM, VMWare, etc.) do you use?

Leave a Comment

Please sign in to add a comment. Not a member? Join today