From d2f09ef4830437beee67004c721e2bb09cf1e45e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 2 Jun 2017 14:15:50 +0200 Subject: [PATCH] conmon: Increase buffer size The buffer is used to read from the stderr/stdout stream, which can easily be larger than 256 bytes. With a larger buffer we will do fewer, larger reads, which is more efficient. And 8k more stack size use is not really a problem. Signed-off-by: Alexander Larsson --- conmon/conmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conmon/conmon.c b/conmon/conmon.c index fdb36845..78d9367d 100644 --- a/conmon/conmon.c +++ b/conmon/conmon.c @@ -84,7 +84,7 @@ static inline void strv_cleanup(char ***strv) #define _cleanup_gstring_ _cleanup_(gstring_free_cleanup) #define _cleanup_strv_ _cleanup_(strv_cleanup) -#define BUF_SIZE 256 +#define BUF_SIZE 8192 #define CMD_SIZE 1024 #define MAX_EVENTS 10