aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ibmasm/module.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2011-03-31 01:35:24 +0000
committerIngo Molnar <[email protected]>2011-03-31 11:02:55 +0000
commit800cd25c12981c99e5401c3551ffffd99f1c6c85 (patch)
tree8a3b1ef662a9190219aaaad842072495fcd70654 /drivers/misc/ibmasm/module.c
parentperf: Rebase max unprivileged mlock threshold on top of page size (diff)
downloadkernel-800cd25c12981c99e5401c3551ffffd99f1c6c85.tar.gz
kernel-800cd25c12981c99e5401c3551ffffd99f1c6c85.zip
perf: mmap 512 kiB by default
The default setting of perf record is to mmap 128 pages if the user did not override with -m. However the page size may vary accross different architecture settings, giving different default size between each. Moreover the kernel side still has a default max number of mlocked pages of 512 kiB + 1 page for unprivileged users. 128 + 1 pages with page size > 4096 overlaps this threshold. Thus, better adapt to this limitation and set the default number of pages to fit those 512 kiB + 1 page. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Stephane Eranian <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions