[sheepdog] [PATCH 6/7] logger: increase shared memory size from 1MB to 32 MB
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Oct 22 05:54:11 CEST 2012
This reduces the risk of dropping log message by increasing the buffer
size from 1 MB to 32 MB, which is the default SHMMAX on many OSes.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
include/logger.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/logger.h b/include/logger.h
index 4ee5956..cd46890 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -17,7 +17,7 @@
#include <stdbool.h>
#include <sys/syslog.h>
-#define LOG_SPACE_SIZE 1048576
+#define LOG_SPACE_SIZE (32 * 1024 * 1024)
#define MAX_MSG_SIZE 256
extern int log_init(const char *progname, int size, bool to_stdout, int level,
--
1.7.2.5
More information about the sheepdog
mailing list