Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

How to change kernel.perf_event_paranoid settings?

$
0
0

When trying to use the perf command, I get the following error message:

Access to performance monitoring and observability operations is limited.Consider adjusting /proc/sys/kernel/perf_event_paranoid setting to openaccess to performance monitoring and observability operations for processeswithout CAP_PERFMON, CAP_SYS_PTRACE or CAP_SYS_ADMIN Linux capability.More information can be found at 'Perf events and tool security' document:https://www.kernel.org/doc/html/latest/admin-guide/perf-security.htmlperf_event_paranoid setting is 4:  -1: Allow use of (almost) all events by all users      Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK>= 0: Disallow raw and ftrace function tracepoint access>= 1: Disallow CPU event access>= 2: Disallow kernel profilingTo make the adjusted perf_event_paranoid setting permanent preserve itin /etc/sysctl.conf (e.g. kernel.perf_event_paranoid = <setting>)

But I am unable to change the file. I tried this advice, but it does not work. Are there any other ways to change it?

I am using Ubuntu 22.04.2 LTS


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>