enum { FALSE = 0, TRUE };
-#define PIPE_REQUESTED_SIZE (256*4096)
+/* Size in bytes of the pipe given to libdlog clients.
+ * The default size (1 page, usually 4 kiB) is fairly small
+ * which leads programs that log a lot to easily clog the
+ * pipe. On the other hand, the amount of memory allocated
+ * to pipes specifically can be limited and on most relevant
+ * targets seems to be set to 16ki pages (64 MiB raw memory)
+ * so pipes should not be too large so as not to waste it. */
+#define PIPE_REQUESTED_SIZE (64 * 1024) // 16 pages at 4 kiB per page
+
#define FILE_PATH_SIZE (256)
#define MAX_CONNECTION_Q 100
#define DELIMITER " "