From 6c12330a350d3e082c835fb61cfcc5c9c93e9bdd 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 Signed-off-by: Amir Shehata Change-Id: I9edad734b5860ce20af4977b4c1cdc07f25f078e Reviewed-by: Sonia Sharma Reviewed-by: James Simmons Reviewed-on: https://review.whamcloud.com/34427 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lnet/klnds/o2iblnd/o2iblnd.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lnet/klnds/o2iblnd/o2iblnd.h b/lnet/klnds/o2iblnd/o2iblnd.h index e60a92d..8322382 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.h +++ b/lnet/klnds/o2iblnd/o2iblnd.h @@ -163,9 +163,7 @@ extern kib_tunables_t 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 * kiblnd_concurrent_sends(c->ibc_version, \ - c->ibc_peer->ibp_ni)) +#define IBLND_CQ_ENTRIES(c) (IBLND_RECV_WRS(c) + kiblnd_send_wrs(c)) struct kib_hca_dev; -- 1.8.3.1