From: Mathieu Desnoyers Date: Tue, 16 Aug 2011 17:04:22 +0000 (-0400) Subject: Set default number of metadata subbuffers to 2 X-Git-Tag: v2.0-pre12~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=91c06b6f161c62548fdd74f246015e86f31f4963;p=lttng-tools.git 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 --- 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 */