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

Running VTune on remote machine creates errors

Nikhil_T
Novice
3,688 Views
vtune: Error: amplxe-perf:
Using CPUID GenuineIntel-6-4F-1
Error:
No permission to enable CPU_CLK_UNHALTED.THREAD event.
 
You may not have permission to collect system-wide stats.
 
Consider tweaking /proc/sys/kernel/perf_event_paranoid,
which controls use of the performance events system by
unprivileged users (without CAP_SYS_ADMIN).
 
The current value is -1:
 
-1: Allow use of (almost) all events by all users
Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
>= 0: Disallow ftrace function tracepoint by users without CAP_SYS_ADMIN
Disallow raw tracepoint access by users without CAP_SYS_ADMIN
>= 1: Disallow CPU event access by users without CAP_SYS_ADMIN
>= 2: Disallow kernel profiling by users without CAP_SYS_ADMIN
 
To make this setting permanent, edit /etc/sysctl.conf too, e.g.:
 
kernel.perf_event_paranoid = -1
 

vtune: Error: Preliminary validation of the requested events failed.
aps Error: Cannot run the collection.
 
 
as you can see, the value is still -1 (most free access) but still generating this error. 
0 Kudos
4 Replies
JaideepK_Intel
Employee
3,674 Views

Hi,

Thank you for posting in Intel Analyzers Forum.

Could you please share the below information for better understanding of the issue and to debug it from our end:

  1. VTune version
  2. Log file after running self-checker Script self_check.py which will be available in <vtune-install-dir>/bin64

Also , this issue might be due to the sampling drivers. Please follow the below document to build and install sampling drivers and try again.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/linux-targets/building-and-installing-the-sampling-drivers-for-linux-targets.html

Regards,

jaideep


0 Kudos
Nikhil_T
Novice
3,667 Views

VTune version : Intel(R) oneAPI VTune(TM) Profiler 2021.6.0 (build 618723) Command Line Tool

 

log output:

Intel(R) VTune(TM) Profiler Self Check Utility
Copyright (C) 2009-2020 Intel Corporation. All rights reserved.
Build Number: 618723

Ignored warnings: ['To profile kernel modules during the session, make sure they are available>
Check of files: Ok
================================================================================
Context values:
Command line:
/opt/intel/oneapi/vtune/2021.6.0/bin64/amplxe-runss --context-value-list
Stdout:
targetOS: Linux
OS: Linux
OSBuildNumber: 0
OSBitness: 64
RootPrivileges: true
isPtraceScopeLimited: false
isCATSupportedByCPU: true
isL3CATAvailable: true
L3CATDetails: COS=16;ways=20
isL2CATAvailable: false
isL3MonitoringSupportedByCPU: true
LLCSize: 36700160
cacheMonitoringUpscalingFactor: 57344
isL3CacheOccupancyAvailable: true
isL3TotalBWAvailable: true
isL3LocalBWAvailable: true
isTSXAvailable: true
isPTAvailable: true
isHTEnabled: true
fpgaOnBoard: None
omniPathOnBoard: None
genArchOnBoard: 0
pciClassParts:
isSGXAvailable: false

LinuxRelease: 5.4.0-65-generic
is3DXPPresent: false
is3DXP2LMMode: false
is3DXPAppDirectMode: false
IsNUMANodeWithoutCPUsPresent: false
Hypervisor: None
PerfmonVersion: 3
isMaxDRAMBandwidthMeasurementSupported: true
tidValuesForIO:
preferedGpuAdapter: none
isPtraceAvailable: true
i915Status: MissingDriver
isFtraceAvailable: ftraceAccessError,debugfsNotExists
isMdfEtwAvailable: false
isCSwitchAvailable: no
isGpuBusynessAvailable: unsupportedHardware
isGpuWaitAvailable: no
isFunctionTracingAvailable: no
isIowaitTracingAvailable: no
isVSyncAvailable: no
HypervisorType: None
isDeviceOrCredentialGuardEnabled: false
isSEPDriverAvailable: false
isPAXDriverLoaded: false
platformType: 108
CPU_NAME: Intel(R) Xeon(R) Processor code named Broadwell
PMU: broadwell_server
referenceFrequency: 2600000000
isPStateAvailable: true
isVTSSPPDriverAvailable: true
isNMIWatchDogTimerRunning: true
LinuxPerfCredentials: Unlimited
LinuxPerfCapabilities: breakpoint:raw;cpu:raw,format,events,ldlat;cstate_core:raw,format,eve>
LinuxPerfStackCapabilities: fp,dwarf,lbr

areKernelPtrsRestricted: no
LinuxPerfMuxIntervalMs: 4
isPerfPCIeMappingAvailable: false
isAOCLAvailable: true
isTPSSAvailable: true
isPytraceAvailable: true
forceShowInlines: false
isSTTAvailable: no
isEnergyCollectionSupported: true
isSocwatchDriverLoaded: false
isCPUSupportedBySocwatch: false
isIPMWatchReady: true
isNvdimmAvailable: true
isOsCountersCollectorAvailable: false
Getting context values: OK
================================================================================
Check driver:
isSEPDriverAvailable: false
isPAXDriverLoaded: false
Command line:
lsmod
Exception: [Errno 2] No such file or directory: 'lsmod': 'lsmod'

An unknown failure has occurred. Attempt the action again or contact Intel technical support.

Log location: /tmp/vtune-tmp-root/self-checker-2021.08.18_09.05.03/log.txt

 

 

 

0 Kudos
JaideepK_Intel
Employee
3,644 Views

Hi,

Looks like you have not installed sampling drivers. Please go through this link for installation:

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/linux-targets/building-and-installing-the-sampling-drivers-for-linux-targets.html

 

For installing lsmod:

apt-get install kmod

 

Regards,

jaideep

 

0 Kudos
JaideepK_Intel
Employee
3,494 Views

Hi,


I 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.


Thanks,

Jaideep



0 Kudos
Reply