Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

vTune

shivag
Novice
363 Views

Hi,

I'm using vTune profiler (2020.3.0.612611) from a CentOS 7 VM (kernel-3.10.0) host machine.

I'm trying to profile an application running in a docker image on the same host.

But the data collection is failing and I can see the following error in logs-

INFO perfrun.sdk <> - runCmd: /opt/intel/vtune_profiler_2020.3.0.612611/bin64/amplxe-python /opt/intel/vtune_profiler_2020.3.0.612611/bin64/amplxe-runss.py --target docker --container-hash eb589908519e23d4af333c34bf26492f90e1b5ce6f479022f137f1514883bdc6 --log-folder /tmp/amplxe-log-root/2020-11-24-14-35-28-753123.amplxe-runss/ --package-command install
7026 [140094847104768] INFO perfrun.system <> - Install script result: 0 loutput: Traceback (most recent call last):
File "/opt/intel/vtune_profiler_2020.3.0.612611/bin64/amplxe-runss.py", line 6692, in <module>
os._exit(return_code)
TypeError: an integer is required (got type NoneType)

NOTE: I'm able to get results when running Intel vTune profiler on a CentOS 8 VM against the same docker image. So, I think I have correct remote host configurations (disk space, file permissions,etc.)

0 Kudos
1 Solution
Kirill_U_Intel
Employee
281 Views

The main reason of issue is that VTune could not map hos process pid on the pid inside container.

Looks like the host kernel (3.10) is too old.

On my system I have

/proc/PID/status file. It contains a line like:

NSpid:  HOST_PROCESS_PID   CONTAINER_PROCESS_PID

But your logs reported that 'status' does not include such information at all

Kirill

View solution in original post

7 Replies
Kirill_U_Intel
Employee
356 Views

Hi,

Could you share /tmp/amplxe-log-root/2020-11-24-14-35-28-753123.amplxe-runss logs?

Kirill

shivag
Novice
321 Views

Attached requested logs.

Kirill_U_Intel
Employee
298 Views

Hi.

Is it reproducible issue? Could you check that attach process pid exists? 

log file

DEBUG:root:<stderr>: vtune: Collection failed.
DEBUG:root:<stderr>: ERROR: target - vtune: Fatal error: Process with the `24808' identifier is not found. Specify another process and try attaching again.

shivag
Novice
288 Views

Yes. This issue is reproducible.

I'm attaching log file generated during the run and created under report/log directory which suggests the process was discovered(line 732) by vtune. Reported error can also be seen in the logs (line 785).

Kirill_U_Intel
Employee
282 Views

The main reason of issue is that VTune could not map hos process pid on the pid inside container.

Looks like the host kernel (3.10) is too old.

On my system I have

/proc/PID/status file. It contains a line like:

NSpid:  HOST_PROCESS_PID   CONTAINER_PROCESS_PID

But your logs reported that 'status' does not include such information at all

Kirill

View solution in original post

shivag
Novice
276 Views
Thank you for the input.

I upgraded the kernel version from 3.x to 5.x and vtune is able to collect results now.
AthiraM_Intel
Moderator
266 Views

Hi,


Glad to know that your issue is resolved. We won't be monitoring this thread anymore. Kindly raise a new thread if you need further assistance.


Thanks.


Reply