Skip to contentSkip to conversation

log_enqueue frequently overruns log_area

PATCH Benjamin Marzinski 2 participants 2 messages Apr 20, 2005 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

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

multipathd/log.h +1 -1
diff -urN multipath-tools-0.4.4-pre16/multipathd/log.h multipath-tools-bigger_buffer/multipathd/log.h
@@ -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
#1 lore raw

Yes, sure, it was set low for testing purpose and can now be bumped up.

Merged, with thanks.

Regards,

Quoted 12 lines · Benjamin Marzinski

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
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Signature · 1 line
christophe varoqui <[email protected]>