From: Amir Shehata Date: Wed, 20 Mar 2019 18:10:34 +0000 (-0700) Subject: LU-12065 lnd: increase CQ entries X-Git-Tag: 2.12.1-RC1~76 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F34474%2F3;p=fs%2Flustre-release.git 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 --- diff --git a/lnet/klnds/o2iblnd/o2iblnd.h b/lnet/klnds/o2iblnd/o2iblnd.h index ddee13d4..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;