diff --git a/src/messenger.cpp b/src/messenger.cpp index dad170f4..28ea48c6 100644 --- a/src/messenger.cpp +++ b/src/messenger.cpp @@ -147,13 +147,13 @@ void osd_messenger_t::parse_config(const json11::Json & config) this->rdma_max_sge = 128; this->rdma_max_send = config["rdma_max_send"].uint64_value(); if (!this->rdma_max_send) - this->rdma_max_send = 32; + this->rdma_max_send = 1; this->rdma_max_recv = config["rdma_max_recv"].uint64_value(); if (!this->rdma_max_recv) - this->rdma_max_recv = 8; + this->rdma_max_recv = 128; this->rdma_max_msg = config["rdma_max_msg"].uint64_value(); if (!this->rdma_max_msg || this->rdma_max_msg > 128*1024*1024) - this->rdma_max_msg = 1024*1024; + this->rdma_max_msg = 129*1024; #endif this->receive_buffer_size = (uint32_t)config["tcp_header_buffer_size"].uint64_value(); if (!this->receive_buffer_size || this->receive_buffer_size > 1024*1024*1024) diff --git a/src/messenger.h b/src/messenger.h index 09d1e0f7..fcee30c9 100644 --- a/src/messenger.h +++ b/src/messenger.h @@ -133,7 +133,7 @@ protected: std::string rdma_device; uint64_t rdma_port_num = 1, rdma_gid_index = 0, rdma_mtu = 0; msgr_rdma_context_t *rdma_context = NULL; - uint64_t rdma_max_sge = 0, rdma_max_send = 0, rdma_max_recv = 8; + uint64_t rdma_max_sge = 0, rdma_max_send = 0, rdma_max_recv = 0; uint64_t rdma_max_msg = 0; #endif