linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: ray clancy <n6re@mminternet.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs raid0
Date: Sat, 5 Oct 2013 01:05:46 +0100	[thread overview]
Message-ID: <20131005000546.GL28147@carfax.org.uk> (raw)
In-Reply-To: <524EE99A.8000603@mminternet.com>

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

On Fri, Oct 04, 2013 at 04:15:22PM +0000, ray clancy wrote:
> How can I verify the read speed of a btrfs raid0 pair in archlinux.?
> 
> I assume raid0 means striped activity in a paralleled mode at lease
> similar to raid0 in mdadm.
> 
> How can I measure the btrfs read speed since it is copy-on-write
> which is not the norm in mdadm raid0.?

   Testing read speed... you're not writing, so there's no
copy-on-write involved there. Just test reading the way you would for
anything else.

> Perhaps I cannot use the same approach in btrfs to determine the
> performance.
> 
> Secondly, I see a methodology for raid10 using the
> command....mkfs.btrfs -m raid10 -d raid10 /dev/sda/dev/sdb /dev/sdc
> /dev/sdd...
> 
> Can I apply the parameters above for -m and -d for raid0?

   I'd certainly recommend it for testing RAID-0. :)

   Actually, a slightly more realistic test would be to use RAID-0 for
data and RAID-1 for metadata, because that's what most [default] users
of the FS will end up with.

> If using raid0 for two devices and add another device, is it striped
> as raid0 also or does the system change it to raid1.

   No, it'll remain as RAID-0. If you rebalance, then the data will
get striped across three devices instead of two.

> What happens to the speed of the system when a new device is added?
> Is it increased ?

   Assuming the FS is reading from all the devices, yes.

> Much I have at hand for mdadm software raido and it doubles the read
> speed.  What parallel exists in raid0 btrfs?  Or is it completely
> off base to expect a speed increase?

   In theory, you should be able to get the sum of the bandwidths of
all the devices (assuming sequential streaming reads). We don't have
any good benchmarks of this kind of thing, so when you do your tests,
please (a) make sure you do a decent experimental design, and (b)
publish the results. :)

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
             --- I always felt that as a C programmer, I ---             
                         was becoming typecast.                          

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      reply	other threads:[~2013-10-05  0:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04 16:15 btrfs raid0 ray clancy
2013-10-05  0:05 ` Hugo Mills [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=20131005000546.GL28147@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=n6re@mminternet.com \
    /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).