Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Pandey__Avinash
Beginner
146 Views

Intel Vtune Amplifier for profiling Docker process doesn't work

Hi,

I have started docker process with below command

docker run --privileged=true --cap-add=SYS_PTRACE    -it  <docker image name and other flags>

After starting my docker i go inside docker and running my application....an the same i want to profile.

For profiling i get the pid of my process that is running inside the docker by ps -eaf | grep <my application name>

 I use below command 

$ amplxe-cl -collect hotspots -target-pid=$PID

Once i start the amplxe it kills my running process and give seg fault with below error 

MPLXE_TPSSCOLLECTOR: init:1300: attach_notification_result == tpss_er_success : attach_notification_result = 14
Assertion failed: init:1300: attach_notification_result == tpss_er_success : attach_notification_result = 14.

Is it possible to launch Vtune with docker process? 

 

 

0 Kudos
2 Replies
Abhinav_S_Intel
Moderator
146 Views

VTune supports profiling application within docker. Based on your environment these two links might help you walk through the profiling:

https://software.intel.com/en-us/vtune-amplifier-help-profiling-container-targets

https://software.intel.com/en-us/vtune-amplifier-cookbook-java-profiling-in-docker-container

Can you please share what version of VTune are you using?

KNoro1
Beginner
146 Views

Abhinav S. (Intel) wrote:

https://software.intel.com/en-us/vtune-amplifier-help-profiling-containe..

This link uses only "collector-type:hw-events" (maybe "sampling-mode=hw" in VTune2019).

I think only hw evens works fine.

Avinash, you can try: 

$amplxe-cl -collect hotspots -knob sampling-mode=hw -knob enable-stack-collection=true  -analyze-system -d 60

Reply