You are not logged in.
It seems that for some reasons my kernel.perf_event_max_sample_rate is locked to 1. I cannot change this value at all.
As root, I just get "Invalid argument". whenever I want to change it.
# echo 100 > /proc/sys/kernel/perf_event_max_sample_rate
bash: echo: write error: Invalid argument
When I try to record anything with "perf record", I get this warning:
Lowering default frequency rate to 1.
Please consider tweaking /proc/sys/kernel/perf_event_max_sample_rate.
I'm running kernel 5.2.11-1. Any ideas how I can increase this?
Last edited by martinus (2019-09-05 19:14:35)
Offline
Actual value and value of perf_cpu_time_max_percent?
https://stackoverflow.com/questions/484 … ample-rate
Offline
kernel.perf_cpu_time_max_percent already is at 0:
sudo sysctl -a |grep perf
kernel.perf_cpu_time_max_percent = 0
kernel.perf_event_max_contexts_per_stack = 8
kernel.perf_event_max_sample_rate = 1
kernel.perf_event_max_stack = 127
kernel.perf_event_mlock_kb = 516
kernel.perf_event_paranoid = -1
Offline
Can you manipulate the value if you re-enable the monitoring?
Offline
Ahhh, when I set kernel.perf_cpu_time_max_percent to any other value than 0 I can change kernel.perf_event_max_sample_rate. So this works:
sysctl -w kernel.perf_cpu_time_max_percent=1
sysctl -w kernel.perf_event_max_sample_rate=10000
Thanks!
Offline