From: Nic Henke <nic@cray.com>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] discontiguous kiov pages
Date: Wed, 8 Jun 2011 11:08:47 -0500 [thread overview]
Message-ID: <4DEF9E8F.6070202@cray.com> (raw)
In-Reply-To: <B91FC92C-00B4-4C0B-A0D1-DA2E6912697D@whamcloud.com>
On 06/07/2011 06:57 PM, Oleg Drokin wrote:
> Hello!
>
>>> It used to be that only the first and last page in an IOV were allowed
>>> to be of a offset + length< PAGE_SIZE.
>> Quite correct. LNDs have relied on this for years now.
>> A change like this should not have occurred without discussion
>> about the wider impact.
>
> Actually now that we found what's happening, I think the issue is a bit less clear-cut.
>
> What happens here is the client is submitting two niobufs that are not contiguous.
> As such I see no reason why they need to be contiguous in VM too. Sure the 1.8 way of handling
> this situation was to send separate RPCs, but I think even if two RDMA descriptors need to be
> made, we still save plenty of overhead to justify this.
>
> (basically we send three niobufs in this case: file pages 0-1, 40-47 (the 47th one is partial) and 49 (full) ).
Oleg - it isn't clear to me what fix you are suggesting here. Are you
saying LNet/LNDs should handle this situation (partial internal page)
under the covers by setting up multiple RDMA on their own? This sounds
like an LND API change, requiring a fix and validation for every LND. I
*think* we might end up violating LNet layering here by having to adjust
internal LNet structures from the LND to make sure the 2nd and
subsequent RDMA landed at the correct spot in the MD, etc.
At least for our network, and I'd venture a guess for others, there is
no way to handle the partial page other than multiple RDMA at the LND
layer. When mapping these pages for RDMA, the internal hole can't be
handled as we just map a set of physical pages for the HW to read
from/write into with a single (address,length) vector. The internal hole
would be ignored and would end up corrupting data as we overwrite the hole.
Cheers,
Nic
next prev parent reply other threads:[~2011-06-08 16:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 2:33 [Lustre-devel] discontiguous kiov pages wang
2011-06-02 13:19 ` Eric Barton
2011-06-07 23:57 ` Oleg Drokin
2011-06-08 16:08 ` Nic Henke [this message]
2011-06-08 20:09 ` Jinshan Xiong
2011-06-09 8:37 ` Peter Jones
2011-06-09 3:16 ` Oleg Drokin
2011-06-09 14:38 ` Eric Barton
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=4DEF9E8F.6070202@cray.com \
--to=nic@cray.com \
--cc=lustre-devel@lists.lustre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.