public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: Or Gerlitz <gerlitz.or-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>,
	Evgenii Smirnov
	<evgenii.smirnov-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>,
	linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: ib_post_send execution time
Date: Fri, 24 Oct 2014 10:52:21 -0500	[thread overview]
Message-ID: <544A75B5.1080304@opengridcomputing.com> (raw)
In-Reply-To: <CAJ3xEMhN1HvddjMECnobZixd+v=0JasRzCXxY_aQXznU2Zx1sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 10/24/2014 6:30 AM, Or Gerlitz wrote:
> On Fri, Oct 24, 2014 at 3:39 AM, Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
>> On Thu, Oct 23, 2014 at 11:45:05AM -0700, Roland Dreier wrote:
>>> On Thu, Oct 23, 2014 at 10:21 AM, Evgenii Smirnov
>>> <evgenii.smirnov-EIkl63zCoXaH+58JC4qpiA@public.gmane.org> wrote:
>>>> I am trying to achieve high packet per second throughput with 2-byte
>>>> messages over Infiniband from kernel using IB_SEND verb. The most I
>>>> can get so far is 3.5 Mpps. However, ib_send_bw utility from perftest
>>>> package is able to send 2-byte packets with rate of 9 Mpps.
>>>> After some profiling I found that execution of ib_post_send function
>>>> in kernel takes about 213 ns in average, for the user-space function
>>>> ibv_post_send takes only about 57 ns.
>>>> As I understand, these functions do almost same operations. The work
>>>> request fields and queue pair parameters are also the same. Why do
>>>> they have such big difference in execution times?
>>>
>>> Interesting.  I guess it would be useful to look at perf top / and or
>>> get a perf report with "perf report -a -g" when running your high PPS
>>> workload, and see where the time is wasted.
>>>
>> I assume ib_send_bw uses inline with blueflame so it may be part of
>> the explanation to the differences you see.
> I think it should be the other way around... when we use inline we
> consume more CPU cycles and here we see notable different (213ns --
> kernel 57ns user) in favor of libmlx4
>

Inline may consume more cpu cycles but should reduce latency because the 
IO is completed with only 1 DMA transaction, the WR fetch, which 
includes the data.  Non-inline requires 2 DMA transactions, the WR fetch 
and the data fetch.


--
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

  parent reply	other threads:[~2014-10-24 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 17:21 ib_post_send execution time Evgenii Smirnov
     [not found] ` <CAEv+Kc1mioxX+pUky3a9Wfd8HzzOTAqyjw0tgdf4Qu2956hOaw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-23 18:45   ` Roland Dreier
     [not found]     ` <CAL1RGDVS2h4wJrxsYwjMH6cOz2jXCuUiY-OjZPjQrSu1btkHmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-24  0:39       ` Eli Cohen
2014-10-24 11:30         ` Or Gerlitz
     [not found]           ` <CAJ3xEMhN1HvddjMECnobZixd+v=0JasRzCXxY_aQXznU2Zx1sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-24 15:52             ` Steve Wise [this message]
     [not found]               ` <544A75B5.1080304-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2014-10-28 16:49                 ` Evgenii Smirnov

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=544A75B5.1080304@opengridcomputing.com \
    --to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
    --cc=eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=evgenii.smirnov-EIkl63zCoXaH+58JC4qpiA@public.gmane.org \
    --cc=gerlitz.or-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-BHEL68pLQRGGvPXPguhicg@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