Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help

Minimizing Collection Overhead

Explore configuration options provided by the Intel® VTune™ Amplifier that 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:

Collect Context Switches

This option enables collection of thread context switches for hardware event-based sampling collection and is available in a custom hardware event-based sampling analysis configuration.

To disable/modify this option for custom analysis:

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, deselect the Collect context switches option.

From CLI:

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

Sampling Interval

This option configures the amount of wall-clock time the VTune Amplifier waits before collecting each sample. The smaller the Sampling Interval, the larger the number of samples collected and written to the disk. The minimal value of the sampling interval depends on the system:

To disable/modify this option for 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.

To disable/modify this option for custom analysis:

From GUI:

  1. In the Analysis Type window, select the Custom Analysis > your_custom_user-mode sampling and tracing collection 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

Stack Size

This option is used to 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.

To disable/modify this option:

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

See Also