logutil: pipe: Raise sorting buffer sizes 30/146630/1
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 29 Aug 2017 15:31:29 +0000 (17:31 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 29 Aug 2017 15:31:29 +0000 (17:31 +0200)
To sort messages in order sort buffer size must be >= size of sorted
log messages.

This commit raises the defaults and limits to ensure that sort buffer
is big enough.

Change-Id: I596133cb8aa5a442b074d340464293b4a1400f6b

configs/dlog.conf.pipe
src/logutil/logutil.c

index df2c72d..8bb7ecd 100644 (file)
@@ -101,4 +101,4 @@ dlog_logger_conf_syslog=dlogutil -b syslog -r 256 -n 1 -f /var/log/dlog/syslog -
 util_sorting_time_window=1000
 
 # If sorting buffer is full, all logs are printed regardless of current sorting status.
-util_sorting_buffer_size=8192
+#util_sorting_buffer_size=1048576
index b5c566c..6a8fc4b 100755 (executable)
@@ -47,8 +47,8 @@
  */
 
 /* The size (in entries) of the sorting buffer. */
-#define DEFAULT_SORT_BUFFER_SIZE 16384
-#define MAX_SORT_BUFFER_SIZE 131072 // fairly arbitrary, mostly to prevent accidents
+#define DEFAULT_SORT_BUFFER_SIZE 131072
+#define MAX_SORT_BUFFER_SIZE 1048576 // fairly arbitrary, mostly to prevent accidents
 
 /* How large (in bytes) the pipe receiving buffer is. */
 #define RECEIVE_BUFFER_SIZE 16384