/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Analysis/profiling/vtune.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-21 03:52:00 UTC
  • Revision ID: csa@suren.me-20150821035200-xu1zh22cqlk2omcq
Profiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Intel VTune [commercial]
 
2
-----------
 
3
 - Intel profiler. Depends on ugly implementation of DCOM to Linux and for that
 
4
 reasons is working on very limited number of platforms. I was able to set
 
5
 on Gentoo and some tools even executed(terribly slow), hower the profiling 
 
6
 always complained and failed.
 
7
 - Depending on hardware counters it is not working in VM.
 
8
 - Expected to be counterpart of oprofile (plus some graphics)
 
9
 - Basicaly console tools
 
10
 - No eclipse integration  on 64bit platform
 
11
 
 
12
Installation
 
13
============
 
14
 * Install in a Red Hat distribution.
 
15
    - Copy the /opt/intel/vtune directory.
 
16
    - Copy the /opt/intel/licenses directory.
 
17
    - Copy the /opt/sag directory.
 
18
    - Copy the /etc/dcom directory.
 
19
    - Copy the /etc/init.d/ntd, vtune (works in gentoo)
 
20
 * In /opt/intel/vtune/bin/clscripts.common comment out SELINUXENABLED_CMD=...
 
21
 * Compile and install the VDK
 
22
    - Fix vdk/src/configure (just extend kernel_includes include list):
 
23
        kernel_includes="-I${kernel_include_dir} -I${kernel_source_dir}/arch/x86/include -include ${kernel_include_dir}/linux/autoconf.h"
 
24
    - Compile 
 
25
        ./configure; make
 
26
    - Compile produced file one level up
 
27
        
 
28
 * Create users
 
29
    - Create the vtunesag group (GID=28888).
 
30
    - Create the vtunesag user (UID=28888).
 
31
    - Create the vtune group (GID=501)
 
32
 * Add users to the vtune group.
 
33
 
 
34
 
 
35
Problems
 
36
========
 
37
 * Eclipse integration is not working on 64bit platforms!
 
38
 
 
39
 
 
40
Starting
 
41
========
 
42
    pfmon & oprofile should be unloaded
 
43
    modprobe vtune_drv 
 
44
    /etc/init.d/ntd start
 
45
 
 
46
Info
 
47
====
 
48
    /opt/intel/vtune/bin/vtl query -lc          List of collectors
 
49
    
 
50
 
 
51
Exectuting:
 
52
    /opt/intel/vtune/bin/vtl activity -d 30 -c sampling -c callgraph -master sampling -app ./opc-server -moi ./opc-server run
 
53
 
 
54
List all runs:
 
55
    vtl show -all
 
56
    
 
57
Get timing information:
 
58
    /opt/intel/vtune/bin/vtl view a8 -code -critical-path -focus-func main
 
59
    
 
60
Anotate code:
 
61
    /opt/intel/vtune/bin/vtl view a8 -code -asm -mn libds.so -fn dsDebugServer