perf record: Increase mmap buffering default
authorIngo Molnar <mingo@elte.hu>
Tue, 2 Jun 2009 21:02:59 +0000 (23:02 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 2 Jun 2009 21:04:24 +0000 (23:04 +0200)
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>
Documentation/perf_counter/builtin-record.c

index 19cba6b5ee9cdf425dd382ef9d815d1f7ee39721..8feb1192e09e655f8ea717f23a97db4286919494 100644 (file)
@@ -19,9 +19,9 @@ static int                    default_interval = 100000;
 static int                     event_count[MAX_COUNTERS];
 
 static int                     fd[MAX_NR_CPUS][MAX_COUNTERS];
-static int                     nr_cpus                         =  0;
+static int                     nr_cpus                         = 0;
 static unsigned int            page_size;
-static unsigned int            mmap_pages                      = 16;
+static unsigned int            mmap_pages                      = 128;
 static int                     output;
 static const char              *output_name                    = "perf.data";
 static int                     group                           = 0;