diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-11-29 22:36:47 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-12-08 20:54:08 -0500 |
commit | a7b1d74e872a4299e1aef66a648316c9c23e5ab4 (patch) | |
tree | 0288f49f37d1a8ed4cbde159669f44bd70c74d4c | |
parent | 03329f9939781041424edd29487b9603a704fcd9 (diff) | |
download | linux-a7b1d74e872a4299e1aef66a648316c9c23e5ab4.tar.gz linux-a7b1d74e872a4299e1aef66a648316c9c23e5ab4.tar.bz2 linux-a7b1d74e872a4299e1aef66a648316c9c23e5ab4.zip |
tracing: Change default buffer_percent to 50
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>
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index d382fd1aa4a6..194c01838e3f 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -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); |