Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5172 Discussions

VTune "ptrace" error on AWS (r5.2xlarge)

Sleem
Beginner
1,433 Views

Hi,

I am trying to run the user-mode/software of threading analysis on r5.2xlarge aws ubuntu20.04.
I got the following error message:
{
vtune: Error: Cannot start data collection because the scope of ptrace system call is limited. To enable profiling, please set /proc/sys/kernel/yama/ptrace_scope to 0. To make this change permanent, set kernel.yama.ptrace_scope to 0 in /etc/sysctl.d/10-ptrace.conf and reboot the machine.
}

which is the same issue as you guys mentioned in the VTune "Known Issues": 
{
VTUNE™ PROFILER USER MODE COLLECTION MAY FAIL TO RUN ON UBUNTU* (VASP-3352)

VTune™ Profiler may fail to collect data for Hotspots and Threading analysis types on the Ubuntu operating system. Once a collection is started, this message appears in the output:

Failed to start profiling because the scope of ptrace() system call application is limited. To enable profiling, please set /proc/sys/kernel/yama/ptrace_scope to 0. See the Release Notes for instructions on enabling it permanently.

To work around this problem for the current session, set contents of the /proc/sys/kernel/yama/ptrace_scope sysctl file to 0.

To make this change permanent, set kernel.yama.ptrace_scope value to 0 at /etc/sysctl.d/10-ptrace.conf file using root permissions and reboot the machine.
}

I tried the solution and it is still not working!
I totally understand that Hardware-Events are not available on this specific instance as you mentioned here: 
https://www.intel.com/content/www/us/en/developer/articles/technical/intel-vtune-amplifier-functionality-on-aws-instances.html

But, I do NOT need it --> I only wanna run the threading analysis in the user-mode/SW.

 

Here is my file that I run:
#!/bin/bash
#SBATCH --nodes=8 # Number of nodes
#SBATCH --ntasks-per-node=1 # Number of MPI processes per node
#SBATCH --mincpus=8 # Minimum Number of Virtual/Logical CPUS per node
#SBATCH -o %x.out # Output file name
#mpirun -np 8 -genv VT_LOGFILE_FORMAT=SINGLESTF -trace /home/ubuntu/einsummable/build/cpuexec_3d 4 4 4 8000 8000 8000
mpirun -np 8 vtune -quiet -collect threading -r threading_simulation -- /home/ubuntu/einsummable/build/cpuexec_3d 4 4 4 8000 8000 8000

Thanks

Labels (1)
0 Kudos
3 Replies
ThasneemV_Intel
Moderator
1,343 Views

Hi,

 

Thanks for posting in Intel Communities.

 

Could you please share the following details:

 

1. VTune version.

 

2. kernel and Processor details.

 

3. Self-checker logs.

 

The "vtune-self-checker.sh" script is available from <install-dir>/bin64 on the Windows or Linux system on which you installed VTune Profiler.

On running this script, it will create a log file and display the location of the log file. Kindly share that file with us so we can verify it from our side.

 

Also, we request you to run the below command:

echo "0"| sudo tee /proc/sys/kernel/yama/ptrace_scope

And verify the result with the below command:

cat /proc/sys/kernel/yama/ptrace_scope

 

Regards,

Thasneem Vazim

 

0 Kudos
ThasneemV_Intel
Moderator
1,314 Views

Hi,


We have not heard back from you. Could you please give us an update?


Regards,

Thasneem Vazim


0 Kudos
ThasneemV_Intel
Moderator
1,274 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Thasneem Vazim


0 Kudos
Reply