aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-05-05 11:50:24 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-05 14:18:32 -0400
commitc5078f78b455fbf67ea71442c7e7ca8acf9ff095 (patch)
treebdd3b699919f2b23faf13177954e82b570653711 /kernel/sysctl.c
parent6de6a7b95705b859b61430fa3afa1403034eb3e6 (diff)
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>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8203d70928d5..3b05c2b088d2 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -920,6 +920,14 @@ static struct ctl_table kern_table[] = {
920 .mode = 0644, 920 .mode = 0644,
921 .proc_handler = &proc_dointvec, 921 .proc_handler = &proc_dointvec,
922 }, 922 },
923 {
924 .ctl_name = CTL_UNNUMBERED,
925 .procname = "perf_counter_mlock_kb",
926 .data = &sysctl_perf_counter_mlock,
927 .maxlen = sizeof(sysctl_perf_counter_mlock),
928 .mode = 0644,
929 .proc_handler = &proc_dointvec,
930 },
923#endif 931#endif
924/* 932/*
925 * NOTE: do not add new entries to this table unless you have read 933 * NOTE: do not add new entries to this table unless you have read