]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
perf_counter: provide an mlock threshold
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 5 May 2009 15:50:24 +0000 (17:50 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 5 May 2009 18:18:32 +0000 (20:18 +0200)
commitc5078f78b455fbf67ea71442c7e7ca8acf9ff095
treebdd3b699919f2b23faf13177954e82b570653711
parent6de6a7b95705b859b61430fa3afa1403034eb3e6
perf_counter: provide an mlock threshold

Provide a threshold to relax the mlock accounting, increasing usability.

Each counter gets perf_counter_mlock_kb for free.

[ Impact: allow more mmap buffering ]

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <20090505155437.112113632@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/perf_counter.c
kernel/sysctl.c