Skip to content

Commit

Permalink
rdma: adjust rx depth (#17)
Browse files Browse the repository at this point in the history
Complementary improvement of bytedance/ps-lite#16
  • Loading branch information
ymjiang authored Jan 7, 2020
1 parent 7644025 commit b368e38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/rdma_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,14 @@ namespace ps {
#define ROUNDUP(x, y) (DIVUP((x), (y))*(y))

static const int kStartDepth = 128;
static const int kWriteDepth = kStartDepth;

static const int kRxDepth = kStartDepth + kWriteDepth;
static const int kRxDepth = 2048; // should be larger than kStartDepth
static const int kReplyDepth = kRxDepth;

static const int kSGEntry = 1;
static const int kTimeoutms = 1000;
static const int kRdmaListenBacklog = 128;
static const int kMaxConcurrentWorkRequest =
kRxDepth + kStartDepth + kReplyDepth + kWriteDepth;
kRxDepth + kStartDepth + kReplyDepth;
static const int kMaxHostnameLength = 16;
static const int kMaxDataFields = 4;

Expand Down

0 comments on commit b368e38

Please sign in to comment.