- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. Could you please give us an update?
Regards,
Thasneem Vazim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page