From: Robin Hill <robin@robinhill.me.uk>
To: linux-raid@vger.kernel.org
Subject: Re: The huge different performance of sequential read between RAID0 and RAID5
Date: Thu, 28 Jan 2010 15:27:55 +0000 [thread overview]
Message-ID: <20100128152755.GA23933@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <100eff551001280655r2e173286nfca3dbf688609571@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2559 bytes --]
On Thu Jan 28, 2010 at 09:55:05AM -0500, Yuehai Xu wrote:
> 2010/1/28 Gabor Gombas <gombasg@sztaki.hu>:
> > On Thu, Jan 28, 2010 at 09:31:23AM -0500, Yuehai Xu wrote:
> >
> >> >> md0 : active raid5 sdh1[7] sdg1[5] sdf1[4] sde1[3] sdd1[2] sdc1[1] sdb1[0]
> >> >> 631353600 blocks level 5, 64k chunk, algorithm 2 [7/6] [UUUUUU_]
> > [...]
> >
> >> I don't think any of my drive fail because there is no "F" in my
> >> /proc/mdstat output
> >
> > It's not failed, it's simply missing. Either it was unavailable when the
> > array was assembled, or you've explicitely created/assembled the array
> > with a missing drive.
>
> I noticed that, thanks! Is it usual that at the beginning of each
> setup, there is one missing drive?
>
Yes - in order to make the array available as quickly as possible, it is
initially created as a degraded array. The recovery is then run to
add in the extra disk. Otherwise all disks would need to be written
before the array became available.
> >
> >> How do you know my RAID5 array has one drive missing?
> >
> > Look at the above output: there are just 6 of the 7 drives available,
> > and the underscore also means a missing drive.
> >
> >> I tried to setup RAID5 with 5 disks, 3 disks, after each setup,
> >> recovery has always been done.
> >
> > Of course.
> >
> >> However, if I format my md0 with such command:
> >> mkfs.ext3 -b 4096 -E stride=16 -E stripe-width=*** /dev/XXXX, the
> >> performance for RAID5 becomes usual, at about 200~300M/s.
> >
> > I suppose in that case you had all the disks present in the array.
>
> Yes, I did my test after the recovery, in that case, does the "missing
> drive" hurt the performance?
>
If you had a missing drive in the array when running the test, then this
would definitely affect the performance (as the array would need to do
parity calculations for most stripes). However, as you've not actually
given the /proc/mdstat output for the array post-recovery then I don't
know whether or not this was the case.
Generally, I wouldn't expect the RAID5 array to be that much slower than
a RAID0. You'd best check that the various parameters (chunk size,
stripe cache size, readahead, etc) are the same for both arrays, as
these can have a major impact on performance.
Cheers,
Robin
--
___
( ' } | Robin Hill <robin@robinhill.me.uk> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-01-28 15:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-28 3:16 The huge different performance of sequential read between RAID0 and RAID5 Yuehai Xu
2010-01-28 7:06 ` Gabor Gombas
2010-01-28 14:31 ` Yuehai Xu
2010-01-28 14:41 ` Gabor Gombas
2010-01-28 14:55 ` Yuehai Xu
2010-01-28 15:27 ` Robin Hill [this message]
2010-01-29 6:05 ` Michael Evans
2010-01-29 11:53 ` Goswin von Brederlow
2010-01-30 7:03 ` Michael Evans
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=20100128152755.GA23933@cthulhu.home.robinhill.me.uk \
--to=robin@robinhill.me.uk \
--cc=linux-raid@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).