Energy Analysis Workflows

Use the energy analysis capabilities available with the Intel® System Studio to analyze power and energy consumption and identify system behaviors that waste energy on an Android*, Windows*, or Linux* OS system running on Intel architecture. Energy data is collected using Intel SoC Watch, but results can be viewed as described below.

Energy Analysis with Intel SoC Watch

This section provides an overview of what is needed to perform energy analysis using the Intel SoC Watch command line tool on a target system running Windows, Linux, or Android OS. Detailed instructions for using Intel SoC Watch are available from the Intel SoC Watch User's Guide for Windows or Linux and Android.

  1. Install the appropriate version of Intel System Studio for your host and target system configuration. Be sure to include Intel SoC Watch in your installed component products.

  2. If the system on which Intel System Studio is installed is not the system on which energy analysis will be run, copy the Intel SoC Watch install package to the target system and install the collector and appropriate drivers For more information, see:

  3. On the target system, set up the scenario to be analyzed for energy usage and run the data collection using Intel SoC Watch.

    Data collection can occur on an idle system or run concurrently with a workload that is started at any time before or during the collection. You must have administrative/root privileges to start the data collection.

    For example, to run a collection for 1 minute (-t 60), gather data about how much time the CPU spends in low power states (-f cpu-cstate), include trace data (-m), and store the reports in a specified directory location with the specified file name (-o results/test), you would use:

    socwatch -t 60 -f cpu-cstate -m -o results/test

    For detailed descriptions of options and the different metrics that can be collected, see Intel SoC Watch Command Options or the Getting Started section of the Intel SoC Watch User's Guide (Linux and Android | Windows).

    Tip

    • Use feature group names as a shorthand for specifying several features (metrics) that should be collected at the same time. For instance, -f sys collects many commonly used metrics, including low power state residency for CPU, GPU, and devices, CPU temperature and frequency, and memory bandwidth.

    • Use the --help option to discover all of the available metrics that can be collected on the system (found under feature and feature group names) as well as other options for controlling data collection and reporting.

  4. Review the summary report generated by Intel SoC Watch on the target system or copy to the host for viewing. Reports are created in a comma-separated file format (CSV) and stored in a location relative to the directory from which Intel SoC Watch was run. By default, the summary report is found in the current directory in the SOCWatchOutput.csv file.

Energy Analysis with Intel VTune Amplifier

You can use the VTune Amplifier as a visualizer for the energy analysis data collected by Intel SoC Watch. The standalone, Intel System Studio, and Intel Parallel Studio versions of the VTune Amplifier all support the import of the Intel SoC Watch results. Data collection is done separately.

This section provides an overview of what is needed to perform energy analysis on a target system running Windows, Linux, or Android OS and viewing the results with VTune Amplifier. Detailed instructions are available from Running Energy Analysis with Intel® VTune™ Amplifier.

  1. Install the appropriate version of Intel System Studio for your host and target system configuration. Be sure to include energy analysis and Intel VTune Amplifier in your installed component products.

  2. If the system on which Intel System Studio is installed is not the system on which energy analysis will be run, copy the Intel SoC Watch install package to the target system and install the collector and appropriate drivers For more information, see:

  3. On the target system, set up the scenario to be analyzed for energy usage and run the data collection using Intel SoC Watch, including the option to write a result file that can be imported to VTune Amplifier (-f vtune). Data collection can occur on an idle system or run concurrently with a workload that is started at any time before or during the collection. You must have administrative/root privileges to start the data collection.

    For example, to run a collection for 1 minute (-t 60), gather data about how much time the CPU spends in low power states (-f cpu-cstate), include trace data (-m), and store the reports in a specified directory location with the specified file name (-o results/test), you would use:

    socwatch -t 60 -f cpu-cstate -m -o results/test -r vtune

    The import file is saved to the results directory as test.pwr.

    For detailed descriptions of options and the different metrics that can be collected, see Intel SoC Watch Command Options or the Getting Started section of the Intel SoC Watch User's Guide (Linux and Android | Windows).

    Tip

    • Use feature group names as a shorthand for specifying several features (metrics) that should be collected at the same time. For instance, -f sys collects many commonly used metrics, including low power state residency for CPU, GPU, and devices, CPU temperature and frequency, and memory bandwidth.

    • Use the --help option to discover all of the available metrics that can be collected on the system (found under feature and feature group names) as well as other options for controlling data collection and reporting.

  4. Copy the import result file (test.pwr) from the target system to the host system.

  5. Import the file to a VTune Amplifier project as follows:

    1. Launch VTune Amplifier GUI on the host system.

    2. Open/Create a project.

    3. Click the Import Result button on the toolbar and browse to the test.pwr file.

      The results are opened in the default Platform Power Analysis viewpoint. For more information about viewing data in Intel VTune Amplifier and the Platform Power Analysis viewpoint, see the Intel VTune Amplifier help.

Energy Analysis with Intel System Studio (Linux target only)

You can use the Intel System Studio GUI to create a project and run energy analysis on a Linux target system. The results are generated in a *.swjson format and can be opened and visualized with Intel System Studio.

Note

This is a PREVIEW FEATURE. A preview feature may or may not appear in a future production release. It is available for your use in the hopes that you will provide feedback on its usefulness and help determine its future. Data collected with a preview feature is not guaranteed to be backward compatible with future releases.

This section provides an overview of what is needed to perform energy analysis using Intel System Studio on a Linux system. Detailed instructions are available from Running Energy Analysis Using Intel® System Studio.

  1. Install the appropriate version of Intel System Studio for your host and target system configuration. Be sure to include energy analysis, which includes Intel SoC Watch, in your installed component products.

  2. Open Intel System Studio with root or sudo permissions, create a new Energy Analysis project, and specify either a local or remote Linux system as the target.

  3. Run the analysis by selecting Run Energy Analysis and selecting the metrics you want to collect. Make sure to select the json output format.

    Data collection can occur on an idle system or run concurrently with a workload that is started at any time during the collection. For more information, see Intel SoC Watch Command Options or the Intel SoC Watch User's Guide.

  4. Open the *.json file from your Energy Analysis project to review the results.

For more complete information about compiler optimizations, see our Optimization Notice.