tracing: Change default buffer_percent to 50
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 30 Nov 2018 03:36:47 +0000 (22:36 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 9 Dec 2018 01:54:08 +0000 (20:54 -0500)
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>
kernel/trace/trace.c

index d382fd1..194c018 100644 (file)
@@ -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);