From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Yishai Hadas <yishaih-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
talal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org
Subject: Re: [PATCH V2 libibverbs 2/7] Add member functions to poll an extended CQ
Date: Tue, 24 May 2016 11:34:37 -0600 [thread overview]
Message-ID: <20160524173436.GA6337@obsidianresearch.com> (raw)
In-Reply-To: <c2a28acc-811a-84da-0793-88032de99b23-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
On Mon, May 23, 2016 at 06:31:52PM +0300, Yishai Hadas wrote:
> On 5/19/2016 9:19 PM, Jason Gunthorpe wrote:
> >On Thu, May 19, 2016 at 02:51:37PM +0300, Yishai Hadas wrote:
> >>+ int (*start_poll_ex)(struct ibv_cq_ex *current,
> >>+ struct ibv_poll_cq_ex_attr *attr);
> >>+ int (*next_poll_ex)(struct ibv_cq_ex *current);
> >>+ void (*end_poll_ex)(struct ibv_cq_ex *current);
> >
> >Probably don't need the _ex here..
>
> The '_ex' points that those functions support extension. (ibv_poll_cq_ex*
> attr, ibv_cq_ex). Their matching ibv_xxx wrappers also have _ex (e.g.
> ibv_start_poll_ex).
> Makes sense ?
No, don't use _ex unless there is an non-_ex variant.
> Specifically talking on 'opcode', the fact that it always exists doesn't
> mean that application will read it. Furthermore, in many cases application
> doesn't need it at all (e.g. only SEND is done, there is CQ per operation,
> etc.) In addition, in some cases it can be achieved based on the wr_id that
> is returned.
>
> Re 'status' and 'wr_id':
> From our benchmark testing we found that coping the the data as part of the
> read_xxx is the major cost and not the function call, so not sure that
> coping the status/wr_id to ibv_cq_ex directly will really give a boost here.
Interesting result, OK.
> As part of our benchmark testing we grouped in one read call status & wr_id
> which are usually needed but didn't see a real impact. Even in UD flow,
> application may not need all fields so supplying a read_ud_info which will
> copy whole candidate fields might not be useful.
> As the API is extensible we may do further extensions in the future if will
> be proved to be useful.
Okay, if benchmarks support this..
> >Finally, these extended APIs really need to be always available - so
> >the core code should always provide a compatability wrapper for
> >providers that do not implement this API. The compat wrapper should
> >use the existing provider wc interface.
>
> The compat layer will work in a non optimal way as it can't support batching
> and there will 2 copies, one from the HW CQ to ibv_wc even for not required
> fields, second, from the ibv_wc to the read_xxx output.
Yes. We should be encouraging all our drivers to implement the new API
and all our users to use the new API.
> However, if required it can be posted as some extra patches in another
> series.
Yes, this avoids the friction moving the users.
Jason
--
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 prev parent reply other threads:[~2016-05-24 17:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-19 11:51 [PATCH V2 libibverbs 0/7] Completion timestamping Yishai Hadas
[not found] ` <1463658702-9975-1-git-send-email-yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-05-19 11:51 ` [PATCH V2 libibverbs 1/7] Add support for extended creating CQ verb Yishai Hadas
2016-05-19 11:51 ` [PATCH V2 libibverbs 2/7] Add member functions to poll an extended CQ Yishai Hadas
[not found] ` <1463658702-9975-3-git-send-email-yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-05-19 18:19 ` Jason Gunthorpe
[not found] ` <20160519181933.GB26130-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-23 15:31 ` Yishai Hadas
[not found] ` <c2a28acc-811a-84da-0793-88032de99b23-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2016-05-24 17:34 ` Jason Gunthorpe [this message]
2016-05-19 11:51 ` [PATCH V2 libibverbs 3/7] Add timestamp_mask and hca_core_clock to ibv_query_device_ex Yishai Hadas
2016-05-19 11:51 ` [PATCH V2 libibverbs 4/7] Add completion timestamp to poll_cq Yishai Hadas
2016-05-19 11:51 ` [PATCH V2 libibverbs 5/7] Create a single threaded CQ Yishai Hadas
2016-05-19 11:51 ` [PATCH V2 libibverbs 6/7] Add a verb that queries real time values from the HCA Yishai Hadas
2016-05-19 11:51 ` [PATCH V2 libibverbs 7/7] Add timestamp support in rc_pingpong Yishai Hadas
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=20160524173436.GA6337@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=talal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=yishaih-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=yishaih-VPRAkNaXOzVWk0Htik3J/w@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