Skip to content

Commit 2e3aa2f

Browse files
committed
perftest: Add minimum rx_depth size in case of SRQ and UD/UC qp type
Add minimum rx_depth size as 100 in SRQ cases with UD/UC qp type so the server side can have some time to warmup and catch up with the client side. Signed-off-by: Shmuel Shaul <[email protected]>
1 parent cdc9e27 commit 2e3aa2f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/perftest_parameters.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,10 @@ static void force_dependecies(struct perftest_parameters *user_param)
10931093
}
10941094

10951095
if (user_param->connection_type == UD || user_param->connection_type == UC) {
1096+
if (user_param->use_srq && user_param->iters <= MIN_SRQ_UD_RX_DEPTH) {
1097+
user_param->rx_depth = MIN_SRQ_UD_RX_DEPTH;
1098+
}
1099+
10961100
if (user_param->rx_depth == DEF_RX_SEND) {
10971101
user_param->rx_depth = (user_param->iters < UC_MAX_RX) ? user_param->iters : UC_MAX_RX;
10981102
}

src/perftest_parameters.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
#define MAX_INLINE_UD (1024)
177177
#define MIN_EQ_NUM (0)
178178
#define MAX_EQ_NUM (2048)
179+
#define MIN_SRQ_UD_RX_DEPTH (100)
179180

180181
/* Raw etherent defines */
181182
#define RAWETH_MIN_MSG_SIZE (64)

0 commit comments

Comments
 (0)