Cookbook

  • 06/18/2020
  • Public Content

Analyze Performance in Amazon Web Services* (AWS*) EC2* Instances

You can analyze application performance using the
Intel® Advisor
in an Amazon Web Services* (AWS*) EC2* instance. This section describes how to set up and connect to your instance, and get started using the Intel Advisor GUI or command line interface (CLI).

Ingredients

This section lists the hardware and software used to produce the specific result shown in this recipe:

Prerequisites

Launch an AWS EC2 Instance

Follow the instructions in Profiling Applications in Amazon Web Services* (AWS) EC2 Instances . Take note of the:
  • Public IP address:
    Launch an AWS EC2 instance: Note public IP address
  • Private key file:
    Launch an AWS EC2 instance: Note private key

Connect to the AWS EC2 Instance Using PuTTY

  1. Configure the secure SSH connection. During configuration, enter:
    • The private key file in
      Connection
      SSH
      Options controlling SSH authentication
      Authentication parameters
      Private key file for authentication
      :
      Connect to the AWS EC2 instance using PuTTY: Configure private key
    • The public IP address in
      Session
      Basic options for your PuTTY session
      Specify the destination you want to connect to
      Host Name (or IP address)
      :
      Connect to the AWS EC2 instance using PuTTY: Configure public IP address
  2. Establish the secure SSH connection and log in using the default user name for the AMI:
    Connect to the AWS EC2 instance using PuTTY: Log in

Upload All Tools, Applications, and Supporting Files to the AWS EC2 Instance Using WinSCP

  1. Configure the WinSCP connection. During configuration, enter the:
    • The public IP address in
      Session
      Host name
    • The default user name for the AMI in
      Session
      User name
      Upload to the AWS EC2 instance using WinSCP: Configure public IP address and default user name
    • The private key file in
      Session
      Advanced Site Settings
      SSH
      Authentication
      Private key file for authentication
      Connect to the AWS EC2 instance using WinSCP: Configure private key
  2. Log in to the AWS EC2 instance.
  3. Upload the
    Intel Advisor
    installation package, the target application, and all other supporting tools, libraries, and files.

Install and Set Up the
Intel Advisor
and Other Supporting Tools

  1. Uncompress the
    Intel Advisor
    installation package.
  2. Launch the installation executable.
    During installation, you may be asked to install external libraries upon which the
    Intel Advisor
    depends. In this recipe, libraries were uploaded from the following entities: GTK, Pango, ALSA, and X.Org.
  3. Set up the
    Intel Advisor
    :
    source /opt/intel/advisor_2019.1.0.579143/advixe-vars.sh

Use the
Intel Advisor
GUI to Analyze Performance

Use the
Intel Advisor
GUI to run analyses, view results, generate reports, including an interactive Roofline report you can view in a browser, create snapshots you can port to a local machine, and more.
  1. Set up a GUI in the AWS EC2 instance:
    • Install VNC technology and necessary libraries.
    • Run a VNC server.
    • Create an SSH tunnel with the correct port number.
    • Connect to the AWS EC2 instance using a VNC viewer.
  2. Launch
    advixe-gui
    to open the
    Intel Advisor
    GUI.

Alternative Steps

You can also use the
Intel Advisor
command line interface (CLI) to accomplish most
Intel Advisor
tasks. For example:
  • Collect Roofline data:
    $ advixe-cl --collect=survey --project-dir=./myAdvisorProj -- myTargetApp $ advixe-cl --collect=tripcounts --flop --no-trip-counts --project-dir=./myAdvisorProj -- myTargetApp
  • Generate a Roofline report in an interactive HTML format that does not require the
    Intel Advisor
    for display:
    $ advixe-cl --report=roofline --project-dir=./myAdvisorProj
  • Generate a Summary report in text format and save it to the
    out
    directory:
    $ advixe-cl --report=summary --project-dir=./myAdvisorProj --format=text --report-output=./out/summary.txt
  • Create a read-only snapshot to package performance data, sources, and binaries for further investigation, save it to the
    tmp
    directory, and name it
    myAdvisorProjSnapshot.advixeexpz
    :
    $ advixe-cl --snapshot --project-dir=./myAdvisorProj --pack --cache-sources --cache-binaries -- ./tmp/myAdvisorProjSnapshot
Running the CLI does not require setting up a GUI in the AWS EC2 instance.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804