From 0205858f6533c7cff8fe8b43d09cece15e0b5385 Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Wed, 20 Mar 2019 11:10:34 -0700 Subject: [PATCH] LU-12065 lnd: increase CQ entries Several sites have reported RDMA timeouts. Most of the timeouts are occurring for transmits on the active_tx queue. Transmits are placed on the active_tx queue until a completion is received. If there isn't enough CQ entries available, it's possible for a completions events to be delayed, causing these timeouts. Lustre-change: https://review.whamcloud.com/34473 Lustre-commit: bf3fc7f1a7bf82c02181c64810bc3f93b3303703 Test-Parameters: trivial Signed-off-by: Amir Shehata Change-Id: I9edad734b5860ce20af4977b4c1cdc07f25f078e Reviewed-by: Sonia Sharma Reviewed-by: James Simmons Reviewed-on: https://review.whamcloud.com/34474 Tested-by: Maloo Reviewed-by: Chris Horn Tested-by: Jenkins Reviewed-by: Andreas Dilger --- lnet/klnds/o2iblnd/o2iblnd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lnet/klnds/o2iblnd/o2iblnd.h b/lnet/klnds/o2iblnd/o2iblnd.h index ddee13d..aab8890 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.h +++ b/lnet/klnds/o2iblnd/o2iblnd.h @@ -162,8 +162,7 @@ extern struct kib_tunables kiblnd_tunables; #define IBLND_RECV_WRS(c) IBLND_RX_MSGS(c) /* 2 = LNet msg + Transfer chain */ -#define IBLND_CQ_ENTRIES(c) \ - (IBLND_RECV_WRS(c) + 2 * c->ibc_queue_depth) +#define IBLND_CQ_ENTRIES(c) (IBLND_RECV_WRS(c) + kiblnd_send_wrs(c)) struct kib_hca_dev; -- 1.8.3.1