Skip to contentSkip to conversation

What is the exact meaning of this parameter ?

DISCUSSION Manuel Selva 1 participant 2 messages May 27, 2015 – Jun 6, 2015

lore
Share & tools
lore
#0 lore raw

Hi all,

I know that the perf_event_mlock_kb kernel parameter allows to limit the amount of counters sampling memory that can be mmap'ed by an unprivileged user.

Nevertheless, playing with the size I give to mmap some memory using the file descriptor returned by perf_event_open I am not able to linkk with the perf_event_mlock_kb parameter. Looking into kernel sources, it seems this parameter is used in kernel/events/core.c where the perf mmap operation is defined but I am not sure to understand the code there. So my question is what is the exact meaning of this parameter ?

Signature · 1 line
Manu
#1 lore raw

Any idea on that ?

Thanks,

----
Manu

Quoted 14 lines · Manuel Selva

Hi all,

I know that the perf_event_mlock_kb kernel parameter allows to limit the amount of counters sampling memory that can be mmap'ed by an unprivileged user.

Nevertheless, playing with the size I give to mmap some memory using the file descriptor returned by perf_event_open I am not able to linkk with the perf_event_mlock_kb parameter. Looking into kernel sources, it seems this parameter is used in kernel/events/core.c where the perf mmap operation is defined but I am not sure to understand the code there. So my question is what is the exact meaning of this parameter ?