Skip to content

Commit

Permalink
tracing: Change default buffer_percent to 50
Browse files Browse the repository at this point in the history
After running several tests, it appears that having the reader wait till
half the buffer is full before starting to read (and causing its own events
to fill up the ring buffer constantly), works well. It keeps trace-cmd (the
main user of this interface) from dominating the traces it records.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt (VMware) committed Dec 9, 2018
1 parent 03329f9 commit a7b1d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -8017,7 +8017,7 @@ init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer)
trace_create_file("timestamp_mode", 0444, d_tracer, tr,
&trace_time_stamp_mode_fops);

tr->buffer_percent = 1;
tr->buffer_percent = 50;

trace_create_file("buffer_percent", 0444, d_tracer,
tr, &buffer_percent_fops);
Expand Down

0 comments on commit a7b1d74

Please sign in to comment.