Top Banner

of 36

05041109135517

Apr 05, 2018

Download

Documents

Jerry Thomas
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/2/2019 05041109135517

    1/36

    VTune PerformanceAnalyzer 6.0

  • 8/2/2019 05041109135517

    2/36

    VTune

  • 8/2/2019 05041109135517

    3/36

    AGENDA

    Introduction

    Terminology

    Sampling

    Call Graph

    Counter Monitor

    VTune on Linux

  • 8/2/2019 05041109135517

    4/36

    VTune Performance

    Analyzer

    Bottlenecks in algorithms

    Bottlenecks due to data layout

    Application architecture bottlenecks

    System-Level and hardwarebottlenecks

  • 8/2/2019 05041109135517

    5/36

    AGENDA

    Introduction

    Terminology

    Sampling

    Call Graph

    Counter Monitor

    VTune on Linux

  • 8/2/2019 05041109135517

    6/36

    Hotspot?

    Where in an application/system where thereis a significant amount of activity() Where = address in memory => OS process => OS

    thread => executable file or Module=> user function(requires symbols) => line of source code (requiressymbols with line numbers) or processor (assembly)instruction.

    Significant= if it doesnt happen often it probablydoesnt have much impact on the systemsperformance.

    Activity= time spent or other internal processorevent.

  • 8/2/2019 05041109135517

    7/36

    Hotspot? hotspot hotspotVTune hotspothotspot cachemiss

  • 8/2/2019 05041109135517

    8/36

    HotspotBottleneck Bottleneck VTune Performance AnalyzerBottlenecks.HotspotsBottlenecks.

  • 8/2/2019 05041109135517

    9/36

  • 8/2/2019 05041109135517

    10/36

    sampling

    call graph

    counter monitor

  • 8/2/2019 05041109135517

    11/36

    Two Ways to

    Track Location Problem: Statistical Solution:30

    Instrumentation Solution:

  • 8/2/2019 05041109135517

    12/36

    The Statistical

    Solution: I Call You! ADVANTAGES:

    :

    DISADVANTAGES:

  • 8/2/2019 05041109135517

    13/36

    The InstrumentationSolution: You call me when

    you get there! ADVANTAGES:

    DISADVANTAGES:

  • 8/2/2019 05041109135517

    14/36

    Hotspots Sampling Data Collector The Statistical

    Solution

    Call Graph Data Collector TheInstrumentation Solution

    sampling

  • 8/2/2019 05041109135517

    15/36

  • 8/2/2019 05041109135517

    16/36

    VTune Projects

    Project? ProjectActivities

    Activity?

  • 8/2/2019 05041109135517

    17/36

    Projects are organized like this:

  • 8/2/2019 05041109135517

    18/36

    AGENDA

    Introduction / Whats New in 6.0

    Terminology

    Sampling

    Call Graph

    Counter Monitor

    VTune on Linux

  • 8/2/2019 05041109135517

    19/36

    Sampling Technology

    ,1,000 Event Based Sampling(EBS).

    L2 CacheMisses, Branch Mispredictions,

    Floating-point instructions retired, etc.

  • 8/2/2019 05041109135517

    20/36

    Lab 1: gzip Sampling

    Analysis Introduces EBS and Sampling UI

    gzip is an open source file

    compression program

  • 8/2/2019 05041109135517

    21/36

    Select New Project

  • 8/2/2019 05041109135517

    22/36

    Select Sampling Wizard

    and then OK

  • 8/2/2019 05041109135517

    23/36

    Select Win32*/Win64*/Linux*Profiling radio button and then

    OK

  • 8/2/2019 05041109135517

    24/36

    Remember each Activity has itsown Application/Module Profile

    1. Browse to theapplication:gzip.exe

    2. The commandline argumentsare: -ftestfile.dat

    3. Check Modify

    defaultconfiguration

    4. Click on Finish

  • 8/2/2019 05041109135517

    25/36

    Modify the Sampling Activity

    1. Select theSampling

    check box.2. Click on

    Configure

    U h k C lib t S l Aft

  • 8/2/2019 05041109135517

    26/36

    Uncheck Calibrate Sample AfterValue checkbox

    Whydo

    this?

  • 8/2/2019 05041109135517

    27/36

    Click OK to run the activity

  • 8/2/2019 05041109135517

    28/36

    hotspot

  • 8/2/2019 05041109135517

    29/36

    AGENDA

    Introduction / Whats New in 6.0

    Terminology

    Sampling Call Graph

    Counter Monitor

    VTune on Linux

  • 8/2/2019 05041109135517

    30/36

  • 8/2/2019 05041109135517

    31/36

    AGENDA

    Introduction / Whats New in 6.0

    Terminology

    Sampling Call Graph

    Counter Monitor

    VTune on Linu

  • 8/2/2019 05041109135517

    32/36

    hotspot

  • 8/2/2019 05041109135517

    33/36

  • 8/2/2019 05041109135517

    34/36

    AGENDA

    Introduction / Whats New in 6.0

    Terminology

    Sampling Call Graph

    Counter Monitor

    VTune on Linux

  • 8/2/2019 05041109135517

    35/36

    VTune on Linux

    LinuxSampling DriverLinuxVTune serverWindows

  • 8/2/2019 05041109135517

    36/36

    http://www.intel.com/software/product

    s/college/vtune/getstart/tutorial/index.htm