linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <jbacik@fb.com>
To: Konstantinos Skarlatos <k.skarlatos@gmail.com>,
	<linux-btrfs@vger.kernel.org>
Subject: Re: Btrfs send 4-5 times slower than rsync on local
Date: Mon, 27 Jan 2014 20:26:59 -0500	[thread overview]
Message-ID: <52E70763.6020209@fb.com> (raw)
In-Reply-To: <52E62358.8030406@gmail.com>

On 01/27/2014 04:14 AM, Konstantinos Skarlatos wrote:
> Hello, i am using btrfs send to copy a snapshot to another btrfs 
> filesystem on the same machine, and it has a maximum speed of 
> 30-35MByte/sec.
> Incredibly rsync is much faster, at 120-140MB/sec. Source btrfs is a 
> 5x2TB raid 0 and target is 1x4TB.
>
> mount options: rw,noatime,compress-force=zlib,space_cache
> kernel is linux-3.13.0-rc6-git and btrfs tools is built from git at 
> about the same time linux-3.13.0-rc6 was released

I just sent a patch titled

[PATCH] Btrfs: only process as many file extents as there are refs

that should make this better.  Also you are giving throughput but not 
actual times.  How much time does it take to do a send vs an rsync.  We 
may be sending less info across and therefore be done faster but at 
lower rates than rsync.  Before this patch rsync won in my test case but 
only barely, and with this patch I'm 3 times faster than rsync even 
though I bet it's getting better throughput. Thanks,

Josef

      reply	other threads:[~2014-01-28  1:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27  9:14 Btrfs send 4-5 times slower than rsync on local Konstantinos Skarlatos
2014-01-28  1:26 ` Josef Bacik [this message]

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=52E70763.6020209@fb.com \
    --to=jbacik@fb.com \
    --cc=k.skarlatos@gmail.com \
    --cc=linux-btrfs@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).