Commit 3cf165fc2e7f221a7a95098b47eb990779e29f5f

Authored by Ingo Molnar
1 parent abaff32a03

perf record: Increase mmap buffering default

I've run into mmap overruns with the current 16 pages default,
increase it to 128 pages.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

Documentation/perf_counter/builtin-record.c
... ... @@ -19,9 +19,9 @@
19 19 static int event_count[MAX_COUNTERS];
20 20  
21 21 static int fd[MAX_NR_CPUS][MAX_COUNTERS];
22   -static int nr_cpus = 0;
  22 +static int nr_cpus = 0;
23 23 static unsigned int page_size;
24   -static unsigned int mmap_pages = 16;
  24 +static unsigned int mmap_pages = 128;
25 25 static int output;
26 26 static const char *output_name = "perf.data";
27 27 static int group = 0;