]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: increase out buffer to 65536 27788/head
authorYingxin Cheng <yingxincheng@gmail.com>
Thu, 11 Apr 2019 14:23:10 +0000 (22:23 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Mon, 29 Apr 2019 07:58:03 +0000 (15:58 +0800)
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/Socket.h

index 5191a2b5207174ef3a70c4544dbee82d6e9ce226..a43a7f5a0bb2b874b4f80c838adb1b5fe4cd9eab 100644 (file)
@@ -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;