Community
cancel
Showing results for 
Search instead for 
Did you mean: 
arundarra
Beginner
169 Views

VTune no analysis results

HI,

I have downloaded the VTune Performance analyser.
When i run it againt my application i dont get any output (call graph).
But when i run it against a sample application i get the required output, I would like to know what is going wrong when i run it againt my application.

Below mentioned are the steps i am executing to use vtune.


$vtl activity -c callgraph -app ./a.out -moi ./a.out run
VTune Performance Analyzer 8.0.4 for Linux*
Copyright (C) 2000-2006 Intel Corporation. All rights reserved.

The Activity has been successfully created.
The Activity is running.
Fri Jul 27 00:40:43 2007 Reading property files started...

Fri Jul 27 00:40:45 2007 Reading property files done.

Fri Jul 27 00:40:45 2007 Static instrumentation started
Fri Jul 27 00:40:47 2007 All functions instrumentation of module "a.out" was successful.
Fri Jul 27 00:40:57 2007 Exports instrumentation of module "libc-2.3.4.so" was successful.
Fri Jul 27 00:40:58 2007 Exports instrumentation of module "libgcc_s-3.4.5-20051201.so.1" was successful.
Fri Jul 27 00:41:00 2007 All functions instrumentation of module "libm-2.3.4.so" was successful.
Sample file
Fri Jul 27 00:41:05 2007 Exports instrumentation of module "libstdc++.so.6.0.3" was successful.
Fri Jul 27 00:41:05 2007 Static instrumentation done
Fri Jul 27 00:41:05 2007 Data collection started...
Fri Jul 27 00:41:05 2007 Process Call Graph (MT) Data Collection, id "30607", started writing Call Graph data.

Fri Jul 27 00:41:05 2007 Process Call Graph (MT) Data Collection, id "30607", finished writing Call Graph data.

Fri Jul 27 00:41:14 2007 Data collection finished...
Fri Jul 27 00:41:14 2007 Updating Call graph database...
Fri Jul 27 00:41:14 2007 Trying to find symbols for module (1 / 7) /lib/ld-2.3.4.so
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Trying to find symbols for module (2 / 7) /lib/tls/libm.so.6
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Trying to find symbols for module (3 / 7) /lib/libgcc_s.so.1
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Trying to find symbols for module (4 / 7) /usr/lib/libstdc++.so.6
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Trying to find symbols for module (5 / 7) /home/user/bin/a.out
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Trying to find symbols for module (6 / 7) /lib/libdl-2.3.4.so
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Trying to find symbols for module (7 / 7) /lib/tls/libc.so.6
Fri Jul 27 00:41:15 2007 Succeeded!
Fri Jul 27 00:41:15 2007 Done.
The Activity has finished running.

$ vtl show -all
VTune Performance Analyzer 8.0.4 for Linux*
Copyright (C) 2000-2006 Intel Corporation. All rights reserved.

a1__Activity1
r1___Call Graph Results [localhost] - Fri Jul 27 00:41:14 2007


$ vtl view a1

I get the required Stack Trace for the sample file.

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

Now when i run the same vtl command with the same arguments againt my application i dont get any output.... Below are the steps that i executed:

$ vtl activity -c callgraph -app ./app,"-ORBEndPoint iiop://152.68.200.224:17000" -moi ./app run
VTune Performance Analyzer 8.0.4 for Linux*
Copyright (C) 2000-2006 Intel Corporation. All rights reserved.

The Activity has been successfully created.
The Activity is running.
Fri Jul 27 00:44:45 2007 Reading property files started...

Fri Jul 27 00:44:57 2007 Reading property files done.

Fri Jul 27 00:45:01 2007 Static instrumentation started
Fri Jul 27 00:47:28 2007 All functions instrumentation of module "dis51ws" was successful.
Fri Jul 27 00:47:47 2007 All functions instrumentation of module "libACE.so.5.3.1" was successful.
Fri Jul 27 00:48:12 2007 All functions instrumentation of module "libTAO.so.1.3.1" was successful.
Fri Jul 27 00:48:12 2007 All functions instrumentation of module "libTAO_IORTable.so.1.3.1" was successful.
Fri Jul 27 00:48:27 2007 All functions instrumentation of module "libTAO_PortableServer.so.1.3.1" was successful.
Fri Jul 27 00:48:33 2007 Exports instrumentation of module "libc-2.3.4.so" was successful.
Fri Jul 27 00:49:21 2007 All functions instrumentation of module "libclntsh.so.10.1" was successful.
Fri Jul 27 00:53:32 2007 All functions instrumentation of module "libdcb51.so" was successful.
Fri Jul 27 01:01:39 2007 All functions instrumentation of module "libdce51.so" was successful.
Fri Jul 27 01:01:52 2007 All functions instrumentation of module "libdcecm51.so" was successful.
Fri Jul 27 01:03:48 2007 All functions instrumentation of module "libdceeul51.so" was successful.
Fri Jul 27 01:04:15 2007 All functions instrumentation of module "libdcell51.so" was successful.
Fri Jul 27 01:04:20 2007 All functions instrumentation of module "libdcf51.so" was successful.
Fri Jul 27 01:04:27 2007 All functions instrumentation of module "libdcw51.so" was successful.
Fri Jul 27 01:04:35 2007 All functions instrumentation of module "libdcwio51.so" was successful.
Fri Jul 27 01:04:36 2007 Minimal instrumentation of module "libdl-2.3.4.so" was successful.
Fri Jul 27 01:04:36 2007 Exports instrumentation of module "libgcc_s-3.4.5-20051201.so.1" was skipped.
Fri Jul 27 01:04:37 2007 All functions instrumentation of module "libm-2.3.4.so" was successful.
Fri Jul 27 01:04:48 2007 All functions instrumentation of module "libnnz10.so" was successful.
Fri Jul 27 01:04:49 2007 All functions instrumentation of module "libnsl-2.3.4.so" was successful.
Fri Jul 27 01:04:49 2007 All functions instrumentation of module "libons.so" was successful.
Fri Jul 27 01:04:49 2007 Exports instrumentation of module "libpthread-0.10.so" was successful.
Fri Jul 27 01:04:53 2007 All functions instrumentation of module "librt-2.3.4.so" was successful.
Fri Jul 27 01:04:56 2007 Exports instrumentation of module "libstdc++-3-libc6.2-2-2.10.0.so" was successful.
Fri Jul 27 01:04:56 2007 Static instrumentation done
Fri Jul 27 01:04:56 2007 Data collection started...
Registering SessionManager
Setting up the Operation Mode and Application Name
Setting the creator of DCSThreadMonitor
Starting the memory manager
Wakeup
Wakeup
Wakeup
Fri Jul 27 01:08:55 2007 Call Graph collection was cancelled.
Fri Jul 27 01:08:56 2007 Started writing Call Graph data.
Fri Jul 27 01:09:01 2007 Process Call Graph (MT) Data Collection, id "590", started writing Call Graph data.

Wakeup
Fri Jul 27 01:09:19 2007 Process Cal l Graph (MT) Data Collection, id "590", finished writing Call Graph data.

Fri Jul 27 01:09:30 2007 Data collection finished...
The Activity has finished running.


$ vtl show
-VTune Performance Analyzer 8.0.4 for Linux*
Copyright (C) 2000-2006 Intel Corporation. All rights reserved.

a1__Activity1
r1___Call Graph Results [localhost] - Fri Jul 27 00:41:14 2007
a2__Activity2

$ vtl view a2
VTune Performance Analyzer 8.0.4 for Linux*
Copyright (C) 2000-2006 Intel Corporation. All rights reserved.

The Activity Result was not found. Use 'vtl show' to display the project's contents.


As you can see that Activity a2 that was created for my application dose not have any trace.

I dont understand why this is occuring..... i am using the same compiler and same complication flags for both the example and the application build.

Any pointer will be of greate help.

Regards
Arun

0 Kudos
8 Replies
Andrey_G_Intel1
Employee
169 Views

Hi Arun,

The difference against a.out is in the way how your application is started. I see that your application does a lot of extra work prior to running main processes. Will you send us more information about your application:

- how much processes it is running

- what is the main process (binary executable) for your application

In order to collect Call Graph VTune instruments binaries and then runs instrumented versions of it. It is seen from the logs that you create Call Graph activity for the ./app binary, but instrumentation and data collection is performed for dis51ws binary. What is the connection between ./app and dis51ws binaries?

The reason why you don't get Call Graph results is that VTune for some reason doesn't instrument ./app binary and thus is not able to collect data.

arundarra
Beginner
169 Views

Hi Andry,

Thanks for your response...

I appologise for the misunderstanding.....

there is no "app"executable we have one one exe that is dis51ws.... was mentioned to denote that an application was being run.

the command begin executed is

> vtl activity -c callgraph -app ./dis51ws,"-ORBEndPoint iiop://152.68.200.224:17000" -moi ./dis51ws run

There is only one exe and only one process that we are trying to get callgraph details for.

This exe links to many dynamic libraries (.so files) some are part of our project and some libraries are third party libraries... like CORBA libraries and DB libraries.. should that cause a problem in getting callgraph?

Regards,

Arun

Andrey_G_Intel1
Employee
169 Views

Hi Arun,

It might be your application is sensitive to the instrumentation that VTune performs with all dependent libraties in order to collect CallGraph data. Can you decrease the instrumentation leveland perform the same experiment again?

In command line you can set instrumentation levels in the.ini file located here for the currect activity:

#vtl query -a | grep ini

Pleaseleaveall-functions instrumentation levelforuser executable,and minimal instrumentation level for user and systemshared object.Let me know how it goes.

arundarra
Beginner
169 Views

Hi Andrey,

I did try wat u said... but i have one doubt.

The .ini file (dis51ws.ini) is found in a directory /root/VTune/Projects/vtune/cg17AD000D/ this file is created only when i start the vtl command, but by then the "All functions instrumentation " is already done.

Is there some other central place where i can set minimal instrumentation level for user and systemshared object.

I also tried changing the cache and buffer size in /root/VTune/callgraph.xml but it did not help.

Some times i get an error like :

Fri Aug 3 00:10:34 2007 Call Graph collection was cancelled.
Fri Aug 3 00:10:35 2007 Started writing Call Graph data.
Fri Aug 3 00:10:45 2007 Process Call Graph (MT) Data Collection, id "14402", started writing Call Graph data.

Fri Aug 3 00:11:11 2007 Data collection finished...
Fri Aug 3 00:11:13 2007 Error - Internal error while resolving the results file.
Some errors occurred during the collection. The Activity was cancelled.

Please do let me know if there is some log file that i can generate and upload to you or is there any other configuration i can do.....

I'd be really obliged if you could help me out with this..

Regards

Arun

Andrey_G_Intel1
Employee
169 Views

Hi Arun,

Please create CG activity first without running it, edit the file and then do run, like:

vtl activity -c callgraph -app ./app -moi ./app

vtl run

Let me know how it goes.

lvhv
Beginner
169 Views

Hi,

I have exactly the same problem that Arun. I did everything tha Andrey suggests but not success, it means, reduce instrumentation to minimal value.

When I run vtl everything goes well, the application is working with no problem, then the application stop and the vtl window shows the message "Data collection started" and nothing more than that, so I get boring to wait and decide to press CTRL+C and no data was collected to show.

Andrey_G_Intel1
Employee
169 Views

Hi,

Is your application big/complex enough? Can it happen that your application leaves some process active after it stops? For example Mozilla application when running first time creates a daemon process gconfd-2 that stays active (in memory) after you exit Mozilla. VTune during CG collection tracks children processes and in case of collecting CG data on Mozilla VTune will never finishes data collection because it waits untill gconfd-2 process finishes.

Do you see the same problem on other applications on the same system? For example when collecting CG data on the following application from VTune installation /opt/intel/vtune/samples/vtunedemo/vtunedemo?

lvhv
Beginner
169 Views

Hi Andrey,

Thanks for your response.

After my application stops I check all the status of all the threads, in fact, my application is complex and multithreated thats why I choose to evaluate VTUNE. To check the status of the application I use ps -eLf, then no threads are active so the problem seems to be other.

I also check the operation with a simple multithread application and VTUNE works, the graph shows me all the threads and what they were doing during application but when I try to profile the real application it fails.

Any other guess???



Reply