Skip to content

Commit 43df7ae

Browse files
authored
chore: enlarge buffer size for avoiding tracer discarded (ros2#2)
Signed-off-by: Takayuki AKAMINE <[email protected]> Signed-off-by: Takayuki AKAMINE <[email protected]>
1 parent 43f23b7 commit 43df7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracetools_trace/tracetools_trace/tools/lttng_impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ def setup(
151151
channel_ust.name = channel_name_ust
152152
# Discard, do not overwrite
153153
channel_ust.attr.overwrite = 0
154-
# 2 sub-buffers of 8 times the usual page size
154+
# 2 sub-buffers of 32 times the usual page size
155155
# We use 2 sub-buffers because the number of sub-buffers is pointless in discard mode,
156156
# and switching between sub-buffers introduces noticeable CPU overhead
157-
channel_ust.attr.subbuf_size = 8 * 4096
157+
channel_ust.attr.subbuf_size = 32 * 4096
158158
channel_ust.attr.num_subbuf = 2
159159
# Ignore switch timer interval and use read timer instead
160160
channel_ust.attr.switch_timer_interval = 0

0 commit comments

Comments
 (0)