[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] log_enqueue frequently overruns log_area



After seeing multipathd not logging what I was expecting it to, I checked to
see if it was ever dropping messages, and it was. In fact, I get dropped
messages on start up most of the time. The attached patch, against
multipath-tools-0.4.4-pre16, doubles the default logarea size. At that size,
I haven't seen any dropped messages. I'm not sure that this is the right
size, but it definitely works better for me.

-Ben
diff -urN multipath-tools-0.4.4-pre16/multipathd/log.h multipath-tools-bigger_buffer/multipathd/log.h
--- multipath-tools-0.4.4-pre16/multipathd/log.h	2005-03-31 03:24:46.000000000 -0600
+++ multipath-tools-bigger_buffer/multipathd/log.h	2005-04-20 14:33:01.000000000 -0500
@@ -1,7 +1,7 @@
 #ifndef LOG_H
 #define LOG_H
 
-#define DEFAULT_AREA_SIZE 2048
+#define DEFAULT_AREA_SIZE 4096
 #define MAX_MSG_SIZE 128
 
 #ifndef LOGLEVEL

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]