Negotiate max_msg instead of max_sge, make buffer settings more conservative :-)
This commit is contained in:
+3
-3
@@ -137,7 +137,8 @@ protected:
|
||||
uint64_t rdma_port_num = 1, rdma_gid_index = 0, rdma_mtu = 0;
|
||||
msgr_rdma_context_t *rdma_context = NULL;
|
||||
// FIXME: Allow to configure these options
|
||||
uint64_t rdma_max_sge = 128, rdma_max_send = 32, rdma_max_recv = 32;
|
||||
uint64_t rdma_max_sge = 128, rdma_max_send = 32, rdma_max_recv = 8;
|
||||
uint64_t rdma_max_msg = 1024*1024;
|
||||
#endif
|
||||
|
||||
std::vector<int> read_ready_clients;
|
||||
@@ -170,8 +171,7 @@ public:
|
||||
|
||||
#ifdef WITH_RDMA
|
||||
bool is_rdma_enabled();
|
||||
bool connect_rdma(int peer_fd, std::string rdma_address, uint64_t client_max_sge);
|
||||
uint64_t get_rdma_max_sge();
|
||||
bool connect_rdma(int peer_fd, std::string rdma_address, uint64_t client_max_msg);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user