linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Terry Toole <toole@photodiagnostic.com>
To: linux-rdma@vger.kernel.org
Subject: Is it possible to transfer a large file between two computers using RDMA UD?
Date: Thu, 2 Jan 2020 09:47:06 -0500	[thread overview]
Message-ID: <CADw-U9BHcoHy3WJ8iSdYjAw3RxQf2vhkOKyL7k0yJdR3mP7Mug@mail.gmail.com> (raw)

Hi,
Is it possible to transfer a large file, say 25GB, between two computers using
RDMA UD, and have an exact copy of the original file on the receiving side? My
understanding is that the order of the messages is not guaranteed with UD.
But I thought that if I only use one QP I could ensure that the ordering of the
data will be predictable.

This is a proof of concept at this time. My thought was to load the file into
memory on the client side and advance the address pointer after each
transfer.  The same scheme would be used on the receiving side. That is,
allocate a large region of memory and increment the address pointer
after each message is received.

I have been using the program ib_send_bw from perftest as a starting point.
After increasing the buffer size on the client side and advancing sg_list->addr
on the client side, I seem to be sending what I intend to send. At the present
time I am not yet advancing sg_list->addr on the server side.  When I print out
the first 100B of data after each transfer, I often see the data I
expect, but not
always.

The commands I've been using to launch my modified version of ib_send_bw are
client:
./ib_send_bw -R   -d mlx5_0 -c UD -i 1 -F -q 1 --mmap=myInputfile.dat
--report_gbits -n 1000 10.10.10.3

server:
./ib_send_bw -R -r 50 -d mlx5_0 -c UD -i 1 -q 1 -F -n 1000 --report_gbits

The "-n 1000" is just for debugging. It will be increased later.

Am I going about this in the correct way? Should I be able to copy a file using
RDMA UD? Any thoughts or suggestions would be most appreciated.

Thanks,

Terry

             reply	other threads:[~2020-01-02 14:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-02 14:47 Terry Toole [this message]
2020-01-02 18:29 ` Is it possible to transfer a large file between two computers using RDMA UD? Jason Gunthorpe
2020-01-02 19:11   ` Terry Toole
2020-01-02 19:25     ` Hefty, Sean
2020-01-02 19:31       ` Jason Gunthorpe
2020-01-02 19:45         ` Terry Toole

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=CADw-U9BHcoHy3WJ8iSdYjAw3RxQf2vhkOKyL7k0yJdR3mP7Mug@mail.gmail.com \
    --to=toole@photodiagnostic.com \
    --cc=linux-rdma@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).