Skip to content

Commit

Permalink
perf record: Increase mmap buffering default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jun 2, 2009
1 parent abaff32 commit 3cf165f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/perf_counter/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3cf165f

Please sign in to comment.