From: Neil Brown <neilb@suse.de>
To: Keld Simonsen <keld@keldix.com>
Cc: Gilad Arnold <arnold@cs.berkeley.edu>,
Bill Davidsen <davidsen@tmr.com>, Roman Mamedov <roman@rm.pp.ru>,
linux-raid@vger.kernel.org
Subject: Re: migrating from RAID5 to RAID10
Date: Tue, 22 Jun 2010 08:09:21 +1000 [thread overview]
Message-ID: <20100622080921.21997f6a@notabene.brown> (raw)
In-Reply-To: <20100618084028.GA23230@rap.rap.dk>
On Fri, 18 Jun 2010 10:40:28 +0200
Keld Simonsen <keld@keldix.com> wrote:
> On Fri, Jun 18, 2010 at 08:30:53AM +1000, Neil Brown wrote:
> >
> > 2-drive RAID10 f2 would be expected to provide better read throughput
> > (possibly twice as fast) at some cost to write throughput. For many people
> > this is a worthwhile trade-off. So it might be better for you.
> > Read throughput would degraded down to write throughput (i.e. slower than
> > RAID1) if the RAID10 were degraded.
>
> The slowdown of write thruput is on the raw raid, and on file systems
> without elevator algorithms. If you employ a file system with an
> elevator algorithm, then there will be no noticeable slowdown for
> writes, as witnessed by many benchmarks.
Filesystems don't implement the elevator algorithm.
It is the driver for the disk drive which does that.
So if you have a filesystem on RAID10 on 4 disk drives, then there are 4
instances of the elevator algorithm between the RAID10 and each disk drive.
With RAID10 f2, consecutive chunks needs to be written to widely different
locations on the device. The elevator certainly helps here by sorting the
write requests so that all the even chunks go to one end of the device, then
all the odd chunks go to the other end.
The only difference that I can imagine between a filesystem and raw-device
access is that maybe one allows the queue to fill up with more write requests
before flushing them out, thus giving the elevator more opportunity to
improve things. However I cannot see that difference in the code (though I
might be missing it).
One difference between writing to a raw device and writing to a filesystem is
that when you close the raw device, all pending writes are flushed, while
when you close a file the data can stay 'dirty' in memory for several more
seconds. So writing to a raw device might seem slower because the close is
slower.
NeilBrown
next prev parent reply other threads:[~2010-06-21 22:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 15:11 migrating from RAID5 to RAID10 Gilad Arnold
2010-06-10 18:52 ` Roman Mamedov
2010-06-10 19:58 ` Gilad Arnold
2010-06-10 22:11 ` Drew
2010-06-10 22:21 ` Drew
2010-06-10 22:30 ` Gilad Arnold
2010-06-10 22:26 ` Gilad Arnold
2010-06-16 15:54 ` Bill Davidsen
2010-06-16 18:30 ` Gilad Arnold
2010-06-16 20:15 ` Gilad Arnold
2010-06-17 1:59 ` Bill Davidsen
2010-06-16 21:26 ` Neil Brown
2010-06-17 17:44 ` Gilad Arnold
2010-06-17 22:30 ` Neil Brown
2010-06-18 8:40 ` Keld Simonsen
2010-06-21 22:09 ` Neil Brown [this message]
2010-06-17 22:46 ` Gilad Arnold
2010-06-18 2:39 ` Neil Brown
2010-06-18 4:01 ` Gilad Arnold
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=20100622080921.21997f6a@notabene.brown \
--to=neilb@suse.de \
--cc=arnold@cs.berkeley.edu \
--cc=davidsen@tmr.com \
--cc=keld@keldix.com \
--cc=linux-raid@vger.kernel.org \
--cc=roman@rm.pp.ru \
/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).