User Guide

Intel® VTune™ Profiler User Guide

ID 766319
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Profile Targets on a Xen* Virtualization Platform

Configure Intel® VTune™ Profiler and your system with a Xen virtualization platform for performance profiling.

You can use the VTune Profiler for hardware event-based analysis either for a guest OS (DomU), a privileged OS (Dom0), or all the domains at once.

Configure a Target System for Analysis

Before running a VTune Profiler analysis on a system with a Xen virtualization platform, enable full-platform CPU monitoring required for event-based sampling analysis:

$ echo "all" > /sys/hypervisor/pmu/pmu_mode

To get CPU profiling data on a virtualized system (Dom0 and the hypervisor only), enter:

$ echo "hv" > /sys/hypervisor/pmu/pmu_mode

NOTE:
  • Some configurations do not support the all mode.

  • CPU events virtualization requires root privileges.

  • Unlike CPU profiling, GPU profiling in the hv mode is available for all domains (Dom0 and DomU).

Configure VTune Profiler for Xen Platform-Wide Analysis

Prerequisites: Make sure the Dom0 remote analysis target is accessible via the Ethernet/SSH connection from your host without any password.

Create a VTune Profiler project and specify options for your remote target as follows:

  1. Select the remote Linux (SSH) type of the target system on the WHERE pane.

  2. Specify SSH destination details for your Dom0 remote target system.

  3. Select the Profile System target type to enable platform-wide performance monitoring (WHAT pane).

    As soon as you set up the target options, the VTune Profiler attempts to automatically install required components on the specified remote system. If, for some reason, the system cannot be reached, VTune Profiler displays an error message. To troubleshoot this potential problem, make sure the default path specified as the VTune Profiler installation on the remote system in the WHERE pane is accessible, writable, and has 200Mb of available space. If not, specify another location, for example: /tmp.

As soon as the connection is established and the target is configured, select an analysis type supported on the Xen virtualization platform from the HOW pane: