Skip to content

Commit

Permalink
perf_counter tools: cut down default count for cpu-cycles
Browse files Browse the repository at this point in the history
In my system, it takes kerneltop dozens of minutes to
show up usable numbers. Make the default count 100 times
smaller fixed this long startup latency.

I'm not sure if it's the right solution though.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Wu Fengguang authored and Ingo Molnar committed Apr 6, 2009
1 parent 3ab8d79 commit dda7c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/perf_counter/kerneltop.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct source_line {


const unsigned int default_count[] = {
1000000,
10000,
1000000,
10000,
10000,
Expand Down

0 comments on commit dda7c02

Please sign in to comment.