[ewg] [PATCH] perftest/ib_send_bw: bidirectional tests have too small completion queue

Ralph Campbell ralph.campbell at qlogic.com
Fri Mar 5 13:20:50 PST 2010


When ib_send_bw -b is run, too few completion queue entries are created
since client and server may each have rx_depth + tx_depth posted work
queue entries outstanding. The consequence is that CQ entries can be
lost due to the queue being full and the test hangs.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

diff --git a/send_bw.c b/send_bw.c
index ddd2b73..37219cd 100644
--- a/send_bw.c
+++ b/send_bw.c
@@ -743,6 +743,9 @@ static struct pingpong_context *pp_init_ctx(struct ibv_device *ib_dev,
 			return NULL;
 		}
 	}
+	if (user_parm->duplex) {
+		cq_rx_depth += tx_depth;
+	}
 	if (user_parm->use_mcg && !user_parm->servername) {
 		cq_rx_depth *= user_parm->num_of_clients_mcg;
 	}





More information about the ewg mailing list