User Guide

  • 2020
  • 06/18/2020
  • Public Content

Profile KVM Kernel Modules from the Host

If you are a system developer and interested in the performance analysis of a guest Linux* system including KVM modules, consider using this usage mode:
  1. Prepare your system for analysis:
    1. Copy the
      files from a guest OS to a host file system to have KVM guest OS symbols resolved.
    2. Copy any guest OS’s modules of interests (
      and any
      files) from a guest OS and save them to a
      folder on the host file system.
  2. Click the
    Configure Analysis
    button on the
    Configure Analysis
    window opens.
  3. Make sure to select the
    Local Host
    target system in the
    pane and configure the required target type in the
    By default, the
    Launch Application
    target type is selected.
    If you select the
    Attach to Process
    target type, specify the
    process to attach to.
    Alternatively, you may specify the PID of the
    process. To determine the PID, enter:
    $ ps aux | grep kvm
  4. In the
    section of the
    pane, select the
    Analyze KVM guest OS
    option and enter paths to the local copies of the guest
    files; for example:
  5. Click the
    Search Binaries
    button on the bottom right.
    Binary/Symbol Search
    dialog box opens.
  6. Add a local path to a
    folder where all modules copied from the guest OS reside.
    For example, if your
    folder is located in
    , specify
    as a search directory:
  7. Click
    to save your changes.
  8. In the
    pane, select a required analysis type.
    For KVM guest OS profiling, you may choose analysis types using Perf*-based EBS data collection: Hotspots (hardware event-based sampling mode), System Overview, or configure your own custom analysis.
  9. Click the
    button at the bottom to run the analysis.
When you run the analysis, the
collects the data on both host and guest OS and displays merged statistics in the result. Guest OS modules have the
postfix in the grid. For example:
Focus on the
tab to analyze your code performance on the guest OS and correlate this data with CPU, GPU, power, hardware event metrics and interrupt count at each moment of time. If you enabled the kvm Ftrace event collection for your target, you can also monitor the statistics for KVM kernel module:
  • In this mode, the
    collects data only on the kernel space modules on the KVM guest OS. Data on user space modules shows up in the
    node and includes only high-level statistics.
  • Call stack data is not collected for this type of profiling.

Product and Performance Information


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