Set default number of metadata subbuffers to 2
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 16 Aug 2011 17:04:22 +0000 (13:04 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 16 Aug 2011 17:04:22 +0000 (13:04 -0400)
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 <mathieu.desnoyers@efficios.com>
include/lttng-share.h

index d076ef3ade5d172d2ef63b9f34168e2b2701a817..b3495e1967f787b72c80de629ff5fb95a56c237a 100644 (file)
@@ -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 */
 
This page took 0.032909 seconds and 4 git commands to generate.