Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: [SPDK] Re: SPDK socket abstraction layer
Date: Thu, 07 Nov 2019 18:45:57 +0000	[thread overview]
Message-ID: <d1ad378435babc07bd026a15b1d90e88f372f420.camel@intel.com> (raw)
In-Reply-To: CAJ3xEMjP+8GTzisXHPe4EU8aPBnSrg770Jok-BxEt+Fs-T-E8Q@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 1525 bytes --]

On Thu, 2019-11-07 at 18:26 +0200, Or Gerlitz wrote:
> On Tue, Nov 5, 2019 at 8:08 PM Walker, Benjamin
> <benjamin.walker(a)intel.com> wrote:
> > On my system currently the network stack is electing to do a deferred copy
> > so the performance is not good.
> 
> Ben, can't prove that instantly, but I tend to think that if you use
> dma buffers for the wire pdu headers,
> things would be better for you in that respect (deferred copy), spdk's
> dma buffers originate (dpdk memory
> allocators) from huge pages which afaik on linux are always pinned.
> Hence the kernel just needs to ref/unref
> when you use them with MSG_ZEROCOPY and nothing beyond that. This is
> the initiator patch [1] but should
> be straight forward to apply it for the target.

I agree and I've had similar thoughts - putting all of the data into pre-pinned
memory is much more likely to hit a fast path in the pinning logic. But I would
have expected it to work even if it wasn't optimal, and it does look like your
colleagues at Mellanox got my patch working to some extent. We're just going to
try it again using the exact set up they used and confirm that it does function.

In parallel I'm going to change the allocations for the PDUs on the target side
to DMA memory like you've done on the initiator.

> 
> https://review.gerrithub.io/c/spdk/spdk/+/473278/4
> _______________________________________________
> SPDK mailing list -- spdk(a)lists.01.org
> To unsubscribe send an email to spdk-leave(a)lists.01.org


             reply	other threads:[~2019-11-07 18:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-07 18:45 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-06-01 16:55 [SPDK] Re: SPDK socket abstraction layer Zawadzki, Tomasz
2019-11-07 16:26 Or Gerlitz
2019-11-06 10:19 Or Gerlitz
2019-11-05 19:56 Sasha Kotchubievsky
2019-11-05 18:08 Walker, Benjamin
2019-11-05 15:06 Or Gerlitz
2019-11-05  5:29 allenz
2019-11-03 16:56 Walker, Benjamin
2019-11-03 15:59 Or Gerlitz
2019-10-31 21:11 Andrey Kuzmin
2019-10-31 18:54 Walker, Benjamin
2019-10-31 14:21 Sasha Kotchubievsky
2019-10-30 23:20 Walker, Benjamin
2019-10-30 21:47 Sasha Kotchubievsky
2019-10-30 20:28 Walker, Benjamin
2019-10-30 19:55 Sasha Kotchubievsky
2019-10-30 18:46 Walker, Benjamin
2019-10-30 17:54 Harris, James R
2019-10-30 17:50 Sasha Kotchubievsky

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=d1ad378435babc07bd026a15b1d90e88f372f420.camel@intel.com \
    --to=spdk@lists.01.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