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

vtune: Warning: Only user space will be profiled due to credentials lack.

smita
Beginner
2,304 Views

Hi,

I have got a  warning message in vtune: 

vtune: Warning: Only user space will be profiled due to credentials lack. Consider changing /proc/sys/kernel/perf_event_paranoid file for enabling kernel space profiling.

 

Current perf_event_paranoid : 2

How does the warning effects the profiling results. Is there any solution except changing perf_event_paranoid to 1.

 

Best,

Smita

0 Kudos
1 Solution
Kirill_U_Intel
Employee
2,295 Views

Hi, Smita.

VTune could not collect kernel space data in this case. User space only

Unprivileged users

perf_events scope and access control for unprivileged processes is governed by perf_event_paranoid [2] setting:

....

>=2:scope includes per-process performance monitoring only. CPU and system events happened when executing in user space only can be monitored and captured for later analysis. Per-user per-cpu perf_event_mlock_kb locking limit is imposed but ignored for unprivileged processes with CAP_IPC_LOCK capability.

More info in VTune cookbook and kernel.org

https://software.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recipes/profiling-hardware-without-sampling-drivers.html 

https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html 

 

Thanks, Kirill

View solution in original post

4 Replies
Kirill_U_Intel
Employee
2,296 Views

Hi, Smita.

VTune could not collect kernel space data in this case. User space only

Unprivileged users

perf_events scope and access control for unprivileged processes is governed by perf_event_paranoid [2] setting:

....

>=2:scope includes per-process performance monitoring only. CPU and system events happened when executing in user space only can be monitored and captured for later analysis. Per-user per-cpu perf_event_mlock_kb locking limit is imposed but ignored for unprivileged processes with CAP_IPC_LOCK capability.

More info in VTune cookbook and kernel.org

https://software.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recipes/profiling-hardware-without-sampling-drivers.html 

https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html 

 

Thanks, Kirill

JananiC_Intel
Moderator
2,280 Views

Hi,


Is your issue resolved?Can we close the case?


0 Kudos
smita
Beginner
2,277 Views
0 Kudos
JananiC_Intel
Moderator
2,266 Views

Hi,


Thanks for the confirmation.We would discontinue monitoring this issue.Please raise a new thread incase of any further issues.


0 Kudos
Reply