From 43df7aea8ad44d3e1efba7c7d1086e149fd07623 Mon Sep 17 00:00:00 2001 From: Takayuki AKAMINE <38586589+takam5f2@users.noreply.github.com> Date: Tue, 8 Nov 2022 09:25:11 +0900 Subject: [PATCH] chore: enlarge buffer size for avoiding tracer discarded (#2) Signed-off-by: Takayuki AKAMINE Signed-off-by: Takayuki AKAMINE --- tracetools_trace/tracetools_trace/tools/lttng_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracetools_trace/tracetools_trace/tools/lttng_impl.py b/tracetools_trace/tracetools_trace/tools/lttng_impl.py index b7970255..82812532 100644 --- a/tracetools_trace/tracetools_trace/tools/lttng_impl.py +++ b/tracetools_trace/tracetools_trace/tools/lttng_impl.py @@ -151,10 +151,10 @@ def setup( channel_ust.name = channel_name_ust # Discard, do not overwrite channel_ust.attr.overwrite = 0 - # 2 sub-buffers of 8 times the usual page size + # 2 sub-buffers of 32 times the usual page size # We use 2 sub-buffers because the number of sub-buffers is pointless in discard mode, # and switching between sub-buffers introduces noticeable CPU overhead - channel_ust.attr.subbuf_size = 8 * 4096 + channel_ust.attr.subbuf_size = 32 * 4096 channel_ust.attr.num_subbuf = 2 # Ignore switch timer interval and use read timer instead channel_ust.attr.switch_timer_interval = 0