From: Bill Davidsen <davidsen@tmr.com>
To: "Dean S. Messing" <deanm@sharplabs.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Help: very slow software RAID 5.
Date: Thu, 20 Sep 2007 11:33:54 -0400 [thread overview]
Message-ID: <46F292E2.1090700@tmr.com> (raw)
In-Reply-To: <20070919174956.9497310209D@medulla.enet.sharplabs.com>
Dean S. Messing wrote:
> Justin Piszcz wrote:
> : One of the 5-10 tuning settings:
> :
> : blockdev --getra /dev/md0
> :
> : Try setting it to 4096,8192,16384,32768,65536
> :
> : blockdev --setra 4096 /dev/md0
> :
> :
>
> I discovered your January correspondence to the list about this. Yes,
> the read-ahead length makes a dramtic difference---for sequential data
> reading. However, in doing some further study on this parameter, I
> see that random access is going to suffer. Since I had intended
> to build an LVM on this RAID 5 array and put a full linux system on
> it, I'm not sure that large read-ahead values are a good idea.
>
> : Also, with a 3-disk raid5 that is the worst performance you can get using
> : only 3 disks
>
> I don't know why (for reads) I should suffer such bad performance.
> According to all I've read, the system is not even supposed to read
> the parity data on reads. So why do I not get near RAID 0 speeds w/o
> having to increase the Read-ahead value?
>
> : , while with a 10 disk raid5 it'd be closer to 90%. Reads you
> : should get good speeds, but for writes-- probably not.
>
> When you say "reads you should get good speeds" are you referring
> to the aforementioned 10 disk RAID 5 or my 3 disk one?
>
> : Then re-benchmark.
>
> Large Read-ahead nearly double the speed of 'hdparm -t'. (So does
> simply using the "--direct" flag. Can you explain this?) Also, in
> your opinion, is it wise to use such large read-aheads for a RAID 5
> intended for the use to which I plan to put it?
>
Do you want to tune it to work well now or work well in the final
configuration? There is no magic tuning which is best for every use, if
there was it would be locked in and you couldn't change it.
> Aside: I have found RAID quite frustrating. With the original two
> disks I was getting 120-130 MB/s in RAID 0. I would think that for
> the investment of a 3rd drive I ought to get the modicum of
> redundancey I expect and keep the speed (at least on reads) w/o
> sacrificing anything. But it appears I actually lost something for my
> investment. I'm back to the speed of single drives with the modicum
> of redundancey that RAID 5 gives. Not a very good deal.
RAID-5 and RAID-1 performance are popular topic, reading the archives
may shed more light on that. After you get to LVM you can do read ahead
tuning on individual areas, which will allow you to do faster random
access on one part and faster sequential on another. *But* when you run
both types of access on the same physical device one or the other will
suffer, and with careful tuning both can be slow.
When you get to the point where you know exactly what you are going to
do and how you are going to do it (layout) you can ask a better question
about tuning.
PS: adding another drive and going to RAID-10 with "far" configuration
will give you speed and reliability, at the cost of capacity. Aren't
shoices fun?
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
next prev parent reply other threads:[~2007-09-20 15:33 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-18 23:09 Help: very slow software RAID 5 Dean S. Messing
2007-09-19 0:05 ` Justin Piszcz
2007-09-19 1:49 ` Dean S. Messing
2007-09-19 8:38 ` Justin Piszcz
2007-09-19 17:49 ` Dean S. Messing
2007-09-19 18:25 ` Justin Piszcz
2007-09-19 23:31 ` Dean S. Messing
2007-09-20 8:25 ` Justin Piszcz
2007-09-20 18:16 ` Michal Soltys
2007-09-20 19:06 ` Dean S. Messing
2007-09-20 15:33 ` Bill Davidsen [this message]
2007-09-20 18:47 ` Dean S. Messing
2007-09-20 21:08 ` Michael Tokarev
2007-09-21 0:58 ` Dean S. Messing
2007-09-21 13:00 ` Bill Davidsen
2007-09-21 20:01 ` Dean S. Messing
2007-09-21 20:21 ` Dean S. Messing
2007-09-25 9:31 ` Goswin von Brederlow
2007-09-25 18:16 ` Dean S. Messing
2007-09-25 21:46 ` Goswin von Brederlow
2007-09-25 23:50 ` Dean S. Messing
2007-09-26 1:45 ` Goswin von Brederlow
2007-09-27 6:23 ` Dean S. Messing
2007-09-27 9:51 ` Michal Soltys
2007-09-27 22:10 ` Backups w/ rsync (was: Help: very slow software RAID 5.) Dean S. Messing
2007-09-28 7:57 ` Backups w/ rsync Michael Tokarev
2007-09-28 10:23 ` Goswin von Brederlow
2007-09-28 11:18 ` Michal Soltys
2007-09-28 12:47 ` Goswin von Brederlow
2007-09-28 14:17 ` Michal Soltys
2007-09-29 0:11 ` Dean S. Messing
2007-09-29 8:43 ` Michael Tokarev
2007-09-28 14:48 ` Bill Davidsen
2007-09-28 14:57 ` Wolfgang Denk
2007-09-28 16:50 ` Bill Davidsen
2007-10-01 4:45 ` Michal Soltys
2007-09-28 15:11 ` Jon Nelson
2007-09-28 16:25 ` Bill Davidsen
2007-09-28 16:52 ` Jon Nelson
2007-09-27 22:40 ` Help: very slow software RAID 5 Bill Davidsen
2007-09-28 23:38 ` Dean S. Messing
2007-09-29 14:52 ` Bill Davidsen
2007-09-27 22:17 ` Bill Davidsen
2007-09-28 23:21 ` Dean S. Messing
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=46F292E2.1090700@tmr.com \
--to=davidsen@tmr.com \
--cc=deanm@sharplabs.com \
--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).