]> git.baikalelectronics.ru Git - 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)
commit9f82cc90658f115148b078f8de0840a8799d1b90
treebdd3b699919f2b23faf13177954e82b570653711
parent5a4c79efec85098b3184b8946b8306521cdc4690
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