linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brown <david@westcontrol.com>
To: CoolCold <coolthecold@gmail.com>
Cc: stan@hardwarefreak.com, Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: XFS on top RAID10 with odd drives count and 2 near copies
Date: Mon, 13 Feb 2012 12:19:12 +0100	[thread overview]
Message-ID: <4F38F1B0.5010300@westcontrol.com> (raw)
In-Reply-To: <CAGqmV7pDuy_rQjsUmVhoHwVGZtdS3dvzhL55fcdehE7AZdtkgw@mail.gmail.com>

On 13/02/2012 10:46, CoolCold wrote:
> On Mon, Feb 13, 2012 at 12:50 PM, David Brown<david@westcontrol.com>  wrote:

>>
>> As another point, since you have mostly read accesses, you should probably
>> use raid10,f2 far layout rather than near layout.  It's a bit slower for
>> writes, but can be much faster for reads.
>>
>> mvh.,
>>
>> David
> David, thank you too - you have formalized and written down what I had
> babelized in my head. Though I not going to have large sequential
> writes/reads, info about "far" layouts is useful and I may use it
> later as reference.
>

Far layout of raid10 is also faster than near for small reads, though 
the difference is less dramatic.

The layout you drew for raid10,n2 is:

A1 A1 A2 A2 A3 A3 A4
A4 A5 A5 A6 A6 A7 A7
A8 A8 A9 A9 A10 A10 A11
A11 ...


For raid10,f2 it is:

A1 A2 A3 A4 A5 A6 A7
A8 A9 A10 A11 A12 A13 A14
....

A7 A1 A2 A3 A4 A5 A6
A14 A8 A9 A10 A11 A12 A13
....

(I'm not too sure of the details of which drives the second copies go on 
for more than 2 drives, but the main point is that it is always on a 
different drive from the original.)

This layout has two advantages.  First, if you /are/ doing a large read, 
you'll get full raid0 striped performance.  Secondly, since each block 
has two copies, one on the inner half of a disk, and one on the outer 
half, reads will normally be handled by only the outer halves of the 
disks.  This means half the average head movement, and faster throughput 
- the outer halves of disk drives are significantly faster than the 
inner halves.  But if the system is already reading from the outer half 
of a drive, it can still use the inner halves to access a copy of the 
data in parallel if that helps overall.

This combines to give raid10,f2 an average read performance that can be 
quite a lot higher than with a pure raid0 setup, and lower read latency 
than raid10,n2 even for small reads.

The disadvantage is greater head movement during writes, so writes have 
longer latency.  But overall it is almost certainly the best choice for 
your read-heavy usage.


  reply	other threads:[~2012-02-13 11:19 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 15:17 XFS on top RAID10 with odd drives count and 2 near copies CoolCold
2012-02-11  4:05 ` Stan Hoeppner
2012-02-11 14:32   ` David Brown
2012-02-12 20:16   ` CoolCold
2012-02-13  8:50     ` David Brown
2012-02-13  9:46       ` CoolCold
2012-02-13 11:19         ` David Brown [this message]
2012-02-13 13:46       ` Stan Hoeppner
2012-02-13  8:54     ` David Brown
2012-02-13  9:49       ` CoolCold
2012-02-13 12:09     ` Stan Hoeppner
2012-02-13 12:42       ` David Brown
2012-02-13 14:46         ` Stan Hoeppner
2012-02-13 21:40       ` CoolCold
2012-02-13 23:02         ` keld
2012-02-14  3:49           ` Stan Hoeppner
2012-02-14  8:58             ` David Brown
2012-02-14 11:38             ` keld
2012-02-14 23:27               ` Stan Hoeppner
2012-02-15  8:30                 ` Robin Hill
2012-02-15 13:30                   ` Stan Hoeppner
2012-02-15 14:03                     ` Robin Hill
2012-02-15 15:40                     ` David Brown
2012-02-17 13:16                       ` Stan Hoeppner
2012-02-17 14:57                         ` David Brown
2012-02-17 19:30                           ` Peter Grandi
2012-02-18 13:59                             ` David Brown
2012-02-19 14:46                           ` Peter Grandi
2012-02-17 19:03                         ` Peter Grandi
2012-02-17 22:12                           ` Stan Hoeppner
2012-02-18 17:09                           ` Peter Grandi
2012-02-15  9:24                 ` keld
2012-02-15 12:10                 ` David Brown
2012-02-15 13:08                   ` keld
2012-02-17 18:44                 ` Peter Grandi
2012-02-18 17:39                   ` Peter Grandi
2012-02-14  7:31           ` CoolCold
2012-02-14  9:05             ` David Brown
2012-02-14 11:10               ` Stan Hoeppner
2012-02-14  2:49         ` Stan Hoeppner

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=4F38F1B0.5010300@westcontrol.com \
    --to=david@westcontrol.com \
    --cc=coolthecold@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=stan@hardwarefreak.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).