]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
perf tools: Bump default sample freq to 4 kHz
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 May 2012 16:14:18 +0000 (13:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 May 2012 16:14:18 +0000 (13:14 -0300)
Quoting Ingo:

"While at it I'd also suggest increasing the default sampling frequency,
from 1000 Hz per CPU to at least 4Khz auto-freq or so - this should work
well all across the board I think. CPUs are getting faster and command/app
run times are getting shorter, 1Khz is a bit low IMO."

Requested-by: Ingo Molnar <mingo@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-2jafa6mkrufyekny9ei59lpu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-top.c

index 9c76add6a03a444d2a63174ea97d3e4b69246c14..e5cb08427e13f56ed7f9223d520a954ef0fc1cf2 100644 (file)
@@ -753,7 +753,7 @@ static struct perf_record record = {
                .mmap_pages          = UINT_MAX,
                .user_freq           = UINT_MAX,
                .user_interval       = ULLONG_MAX,
-               .freq                = 1000,
+               .freq                = 4000,
                .target              = {
                        .uses_mmap   = true,
                },
index 18bd226f9f2b0cd226a45fd3e75c6465764c605a..6031dce0429f8f93e267d530e9a91fec3ddaf74b 100644 (file)
@@ -1162,7 +1162,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __used)
        struct perf_top top = {
                .count_filter        = 5,
                .delay_secs          = 2,
-               .freq                = 1000, /* 1 KHz */
+               .freq                = 4000, /* 4 KHz */
                .mmap_pages          = 128,
                .sym_pcnt_filter     = 5,
                .target              = {