linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Olga Kornievskaia <aglo@umich.edu>
Cc: "Mora, Jorge" <Jorge.Mora@netapp.com>,
	"nfsv4@ietf.org" <nfsv4@ietf.org>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [nfsv4] Inter server-side copy performance
Date: Mon, 17 Apr 2017 09:36:04 -0400	[thread overview]
Message-ID: <20170417133604.GA22694@fieldses.org> (raw)
In-Reply-To: <CAN-5tyHOdU9BJnJft+X06=6X7_s8MS_hDmg9t=fJQ=QtvJQD=w@mail.gmail.com>

On Fri, Apr 14, 2017 at 05:22:13PM -0400, Olga Kornievskaia wrote:
> On Fri, Apr 14, 2017 at 4:09 PM, Mora, Jorge <Jorge.Mora@netapp.com> wrote:
> > On 4/13/17, 11:45 AM, "J. Bruce Fields" <bfields@fieldses.org> wrote:
> >> Are you timing just the copy_file_range() call, or do you include a
> >> following sync?
> >
> > I am timing right before calling copy_file_range() up to doing an fsync() and close() of the destination file.
> > For the traditional copy is the same, I am timing right before the first read on the source file up to the
> > fsync() and close() of the destination file.
> 
> Why should do we need a sync after copy_file_range(). kernel
> copy_file_range() will send the commits for any unstable copies it
> received.

Why does it do that?  As far as I can tell it's not required by
documentation for copy_file_range() or COPY.  COPY has a write verifier
and a stable_how argument in the reply.  Skipping the commits would
allow better performance in case a copy requires multiple COPY calls.

But, in any case, if copy_file_range() already committed then it
probably doesn't make a significant difference to the timing whether you
include a following sync and/or close.

--b.

  reply	other threads:[~2017-04-17 13:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DFE33002-FE1C-4E83-B6E3-50BFD304C7F6@netapp.com>
2017-04-13 17:45 ` [nfsv4] Inter server-side copy performance J. Bruce Fields
2017-04-14 20:09   ` Mora, Jorge
2017-04-14 21:22     ` Olga Kornievskaia
2017-04-17 13:36       ` J. Bruce Fields [this message]
2017-04-17 15:30         ` Olga Kornievskaia
2017-04-17 15:57           ` Anna Schumaker
     [not found]           ` <CAFX2JfkiraKm2Rmqhkrh3CSWBoYfW0QU=uXw=sSx-8Wt8JD7wg@mail.gmail.com>
2017-04-18 17:28             ` Olga Kornievskaia
2017-04-18 18:33               ` J. Bruce Fields
2017-06-15 19:29                 ` Mora, Jorge
2017-06-15 20:37                   ` J. Bruce Fields

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=20170417133604.GA22694@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Jorge.Mora@netapp.com \
    --cc=aglo@umich.edu \
    --cc=linux-nfs@vger.kernel.org \
    --cc=nfsv4@ietf.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).