From: Or Gerlitz <ogerlitz-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
To: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
Cc: Steve Wise
<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>,
"Robert D. Russell" <rdr-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>,
linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] libibverbs/doc: clarify selective signaling (Re: using IBV_SEND_SIGNALED)
Date: Tue, 30 Nov 2010 13:56:13 +0200 [thread overview]
Message-ID: <4CF4E65D.4070205@Voltaire.com> (raw)
In-Reply-To: <4CF3E5FA.6010308-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Steve Wise wrote:
> On 11/29/2010 11:34 AM, Robert D. Russell wrote:
> See section 8.2.1 of the iWARP Verbs draft at:
> http://tools.ietf.org/html/draft-hilland-rddp-verbs-00#section-8.2.1.
> The last big paragraph in 8.2.1 spells it all out.
> There should be a similar requirement in the IBTA IB Verbs specification...
Yes, I think the below patch to the man page can help people understand how to work
with the thing
>>> You must signal one WR for every SQ-depth worth of WRs posted. IE:
>>> If your SQ depth is 16, you must signal at least one out of every 16
>>> This ensures proper flow control for HW resources.
clarify selective signaling usage
Signed-off-by: Or Gerlitz <ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org>
---
man/ibv_post_send.3 | 6 ++++++
1 file changed, 6 insertions(+)
Index: libibverbs/man/ibv_post_send.3
===================================================================
--- libibverbs.orig/man/ibv_post_send.3
+++ libibverbs/man/ibv_post_send.3
@@ -112,6 +112,12 @@ request is fully executed and a work com
from the corresponding completion queue (CQ). However, if the
IBV_SEND_INLINE flag was set, the buffer can be reused immediately
after the call returns.
+.PP
+Applications which use selective signaling should make sure to post
+a signaled WR (i.e one for which the IBV_SEND_SIGNALED flag is set) from
+time to time - depending on the requirements of the underlying rdma device.
+Typically the number of consecutive unsignaled WRs should not exceed the
+size of the send queue specified when the QP was created.
.SH "SEE ALSO"
.BR ibv_create_qp (3),
.BR ibv_create_ah (3),
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2010-11-30 11:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alpine.LNX.2.00.1011291128190.31687@postal.iol.unh.edu>
[not found] ` <4CF3DDF0.2070907@opengridcomputing.com>
[not found] ` <alpine.LNX.2.00.1011291233540.5810@postal.iol.unh.edu>
[not found] ` <4CF3E5FA.6010308@opengridcomputing.com>
[not found] ` <4CF3E5FA.6010308-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-11-30 11:56 ` Or Gerlitz [this message]
[not found] ` <4CF4E65D.4070205-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-11-30 18:57 ` [PATCH] libibverbs/doc: clarify selective signaling (Re: using IBV_SEND_SIGNALED) Jason Gunthorpe
[not found] ` <20101130185744.GK16788-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-12-01 8:17 ` Or Gerlitz
2010-12-01 9:01 ` Or Gerlitz
[not found] ` <4CF60ED0.6000502-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-12-01 19:10 ` Jason Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF4E65D.4070205@Voltaire.com \
--to=ogerlitz-hkgkho2ms0fwk0htik3j/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rdr-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org \
--cc=rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
--cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox