From c9aae7a99f75fe61052385433f2c175381880183 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Thu, 11 Apr 2019 22:23:10 +0800 Subject: [PATCH] crimson/net: increase out buffer to 65536 Signed-off-by: Yingxin Cheng --- src/crimson/net/Socket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crimson/net/Socket.h b/src/crimson/net/Socket.h index 5191a2b52071..a43a7f5a0bb2 100644 --- a/src/crimson/net/Socket.h +++ b/src/crimson/net/Socket.h @@ -35,7 +35,9 @@ class Socket : sid{seastar::engine().cpu_id()}, socket(std::move(_socket)), in(socket.input()), - out(socket.output()) {} + // the default buffer size 8192 is too small that may impact our write + // performance. see seastar::net::connected_socket::output() + out(socket.output(65536)) {} Socket(Socket&& o) = delete; -- 2.47.3