Profile Targets on a Xen* Virtualization Platform
Configure
Intel® VTune™
and your system with a Xen virtualization platform for performance profiling.
Profiler
You can use the
VTune
for hardware event-based analysis either for a guest OS (DomU), a privileged OS (Dom0), or all the domains at once.
Profiler
Configure a Target System for Analysis
Before running a
VTune
analysis on a system with a Xen virtualization platform, enable full-platform CPU monitoring required for event-based sampling analysis:
Profiler
$ 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
- Some configurations do not support theallmode.
- CPU events virtualization requires root privileges.
- Unlike CPU profiling, GPU profiling in thehvmode is available for all domains (Dom0 and DomU).
Configure
VTune
Profiler for Xen Platform-Wide Analysis
VTune
for Xen Platform-Wide Analysis Profiler
Prerequisites
: Make sure the Dom0 remote analysis target is accessible via the Ethernet/SSH connection from your host
without any password.
Create a
VTune
project and specify options for your remote target as follows:
Profiler
- Select theremote Linux (SSH)type of the target system on theWHEREpane.
- SpecifySSH destinationdetails for your Dom0 remote target system.
- Select theProfile Systemtarget type to enable platform-wide performance monitoring (WHATpane).As soon as you set up the target options, theVTuneattempts to automatically install required components on the specified remote system. If, for some reason, the system cannot be reached,ProfilerVTunedisplays an error message. To troubleshoot this potential problem, make sure the default path specified as theProfilerin theVTuneinstallation on the remote systemProfilerWHEREpane 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: