vtune performance analysis tool--find out program performance bottlenecks

1 Overview

VTune is a relatively powerful performance analysis software from Intel. It mainly includes three gadgets:

(1) Performance Analyzer: Performance analysis to find the hot part of software performance, which is generally the key point of the performance bottleneck.

(2) Intel Threading Checker: used to find thread errors, can detect resource competition, thread deadlock and other issues

(3) Intel Threading Profiler: Thread performance detection tool, multithreading may have thread-related performance problems such as load ratio balance, excessive synchronization overhead, etc. This tool can help you find the status of each thread at every moment.

2. Installation

On linux, decompress the file vtune_amplifier_xe_2011_update1.tar.gz;

Execute the install.sh script and follow the prompts to the next step;

Install a Windows client, VTune_Amplifier_XE_2011_update3_setup.exe, to display the collected data in a graphical interface.

3. Use

VTune has two working modes, we generally use the remote mode,

Local mode is when the program under analysis and VTune work on the same machine at the same time

Remote mode means that the program is on one machine and VTune is installed on another machine

1) Start the application that needs to be analyzed, taking is_searcher_server as an example

/home/admin/intel/vtune_amplifier_xe_2011/bin64/amplxe-cl -collect hotspots is_searcher_server -c conf/searcher_server.cfg -l conf/searcher_log.cfg -k restart -d

Among them, amplxe-cl refers to list the analysis types supported by this machine. Here, select -collect hotspots to collect hotspots.

There is also amplxe-cl --report-list; for supported report types.

See more http://software.intel.com/zh-cn/blogs/2010/11/10/amplxe-cl/ 

The latter is the startup parameters of the service.

After the service starts, a data file named r000hs will be automatically generated (the generated files will be automatically named r001hs, r002hs…)

2) Start other service programs, and stop the analyzed program (that is, is_searcher_server here) after applying pressure for a period of time.

At this time, the collected data information is stored in r000hs . It should be noted that the program being analyzed must be stopped, otherwise the data will not be generated into r000hs.

3) Start the windows client VTune_Amplifier_XE_2011_update3_setup and import the data r000hs . The steps are as follows:

file->open->result, load r000hs, but it will be very slow at this time, the solution is to use sumba shared server to share linux files under windows

Original text: http://ju.outofmemory.cn/entry/1506

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325901413&siteId=291194637
Recommended