- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you share /tmp/amplxe-log-root/2020-11-24-14-35-28-753123.amplxe-runss logs?
Kirill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attached requested logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I upgraded the kernel version from 3.x to 5.x and vtune is able to collect results now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page