From 91c06b6f161c62548fdd74f246015e86f31f4963 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 16 Aug 2011 13:04:22 -0400 Subject: [PATCH] Set default number of metadata subbuffers to 2 LTTng uses a wait/wakeup scheme when the metadata buffer is full, so there is no need to waste memory. Signed-off-by: Mathieu Desnoyers --- include/lttng-share.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/lttng-share.h b/include/lttng-share.h index d076ef3ad..b3495e196 100644 --- a/include/lttng-share.h +++ b/include/lttng-share.h @@ -39,10 +39,7 @@ typedef __s64 s64; #define DEFAULT_CHANNEL_OUTPUT LTTNG_EVENT_MMAP #define DEFAULT_METADATA_SUBBUF_SIZE 4096 -#define DEFAULT_METADATA_SUBBUF_NUM 8 -//TODO: keeping value to 8 currently because consumer is only spawned after -//start, so it cannot empty the metadata buffer at trace start. -//#define DEFAULT_METADATA_SUBBUF_NUM 2 +#define DEFAULT_METADATA_SUBBUF_NUM 2 /* Kernel has different defaults */ -- 2.34.1