Intel® VTune™ Amplifier

Minimizing Collection Overhead

Some configuration options provided by the Intel® VTune™ Amplifier incur collection overhead and increase the result size. If required, consider disabling or modifying these options either by editing the predefined analysis configuration or by creating a new custom analysis type.

Options Incurring Collection Overhead

Description

To Disable/Modify This Option

Affected Analysis Types

Collect context switches

Use this option to enable collection of advanced call stacks and thread context switches for hardware event-based sampling analysis types. By default, this option is disabled. You may enable the call stack collection, either in the predefined Advanced Hotspots analysis type or in a custom hardware event-based sampling analysis type.

From GUI for the Advanced Hotspots analysis:

  1. In the Analysis Type window, select the Algorithm Analysis > Advanced Hotspots type in the analysis tree on the left.

  2. In the configuration pane on the right, select the Hotspots collection level.

From GUI for the custom analysis:

  1. In the Analysis Type window, select the Custom Analysis > your_custom_hw_ebs_analysis type in the analysis tree on the left.

  2. In the configuration pane on the right, click the Edit button on top.

  3. In the Custom Analysis dialog box, deselect the Collect context switches option.

From CLI for the Advanced Hotspots analysis: Use the -knob collection-detail=hotspots-sampling option. For example:

$ amplxe-cl -collect advanced-hotspots -knob collection-detail=hotspots-sampling -d 50 -r matrix_r001

From CLI for the custom analysis: Use the -knob enable-stack-collection=false option. For example:

$ amplxe-cl -collect-with runsa -knob enable-stack-collection=false -knob event-config=CPU_CLK_UNHALTED.REF_TSC:sa=1800000,CPU_CLK_UNHALTED /home/test/sample

any custom hardware event-based sampling analysis types

Sampling interval

Configure the amount of wall-clock time the Intel® VTune™ Amplifier waits before collecting each sample. The smaller the sampling interval, the larger the number of samples collected and written to disk. The minimal value of the sampling interval depends on the system:

  • 10 milliseconds for systems with a single CPU

  • 15 milliseconds for systems with multi-core CPUs

From GUI for the Advanced Hotspots analysis:

  1. In the Analysis Type window, select the Algorithm Analysis > Advanced Hotspots type in the analysis tree on the left.

  2. In the configuration pane on the right, increase the CPU sampling interval, ms value.

From GUI for the custom analysis:

  1. In the Analysis Type window, select the Custom Analysis > your_custom_user-mode_sampling_and_tracing_analysis type in the analysis tree on the left.

  2. In the configuration pane on the right, click the Edit button on top.

  3. In the Custom Analysis dialog box, increase the CPU sampling interval, ms value.

From CLI, use the -knob sampling-interval=<value> option. For example:

$ amplxe-cl -collect-with runss -knob sampling-interval=100 -knob cpu-samples-mode=stack -knob signals-mode=stack -knob waits-mode=stack -knob io-mode=stack /home/test/sample

Advanced Hotspots and any custom user-mode sampling and tracing analysis types

Stack size, in bytes

Specify the size of a raw stack (in bytes) to process during hardware event-based sampling collection. Zero value means unlimited size. Possible values are numbers between 0 and 2147483647.

From GUI:

  1. In the Analysis Type window, select the Custom Analysis > your_custom_hw_ebs_analysis type in the analysis tree on the left.

  2. In the configuration pane on the right, click the Edit button on top.

  3. In the Custom Analysis dialog box, decrease the Stack size, in bytes value.

From CLI, use the -stack-size option, for example:

$ amplxe-cl -collect-with runsa -knob enable-stack-collection=true -knob stack-size=8192 -knob enable-call-counts=true -app-working-dir /home/samples/nqueens_fortran -- /home/samples/nqueens_fortran/nqueens_parallel

any custom hardware event-based sampling analysis types

See Also