Tcp send receive buffer size for fabric similar to XDR

Hi All,

Similar to XDR, I set tcp send, receive buffer size to 5, 15MB respectively for fabric sockets.

I could see 5% increase in IOPs after below change.

root@ubuntu:~/aerospike/aerospike-server# git diff cf/src/socket.c
diff --git a/cf/src/socket.c b/cf/src/socket.c
index 0763a8d..f620bc0 100644
--- a/cf/src/socket.c
+++ b/cf/src/socket.c
@@ -652,6 +652,11 @@ cf_socket_init_server(cf_serv_cfg *cfg, cf_sockets *socks)
 
                static const int32_t flag = 1;
                safe_setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(flag));
+               //TBD window size
+               if (cfg->cfgs[n].owner == CF_SOCK_OWNER_FABRIC) {
+                       cf_socket_set_send_buffer(sock, (5*1024*1024));
+                       cf_socket_set_receive_buffer(sock, (15*1024*1024));
+               }
 
                while (bind(sock->fd, (struct sockaddr *)&sas,
                                cf_socket_addr_len((struct sockaddr *)&sas)) < 0) {
root@ubuntu:~/aerospike/aerospike-server# 

I would like to know why this change was not made available for fabric sockets?

Thanks for the info. Let us review your findings.

The init scripts do configure these settings for fabric sockets. Maybe you aren’t using these scripts?

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.