From: davidsen@tmr.com (bill davidsen)
To: linux-kernel@vger.kernel.org
Subject: Re: raid0 slower than devices it is assembled of?
Date: 17 Dec 2003 17:02:09 GMT [thread overview]
Message-ID: <brq26h$6ei$1@gatekeeper.tmr.com> (raw)
In-Reply-To: 1071657159.2155.76.camel@abyss.local
In article <1071657159.2155.76.camel@abyss.local>,
Peter Zaitsev <peter@mysql.com> wrote:
| One more issue with smaller stripes both for RAID5 and RAID0 (at least
| for DBMS workloads) is - you normally want multi-block IO (ie fetching
| many sequentially located pages) to be close in cost to reading single
| page, which is true for single hard drive. However with small stripe
| size you will hit many of underlying devices putting excessive not
| necessary load.
All this depends on what you're trying to optimize and the speed of the
drives. I spent several years running on software raid and got to look
harder than I wanted at the tuning.
If the read size is large enough for transfer time to matter, not hidden
in the latency, adjusting the stripe size so that you use many drives is
a win. You want to avoid having a user i/o generate more than one i/o
per drive if you can, which can lead to large stripe sizes.
Also, the read to write ratio is important. RAID-5 does poorly with
write, since the CRC needs to be recalculated and written each time. On
read, unless you are in fallback mode, you just read the data and the
performance is similar to RAID-0.
If you have (a) a high read to write load, and (b) a very heavy read
load, then RAID-1 works better, possibly with more than two copies of
the data to reduce head motion contention.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
next prev parent reply other threads:[~2003-12-17 17:13 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-15 13:34 raid0 slower than devices it is assembled of? Witold Krecicki
2003-12-15 15:44 ` Witold Krecicki
2003-12-16 4:01 ` jw schultz
2003-12-16 14:51 ` Helge Hafting
2003-12-16 16:42 ` Linus Torvalds
2003-12-16 20:58 ` Mike Fedyk
2003-12-16 21:11 ` Linus Torvalds
2003-12-17 10:53 ` Jörn Engel
2003-12-17 11:39 ` Peter Zaitsev
2003-12-17 16:01 ` Linus Torvalds
2003-12-17 18:37 ` Mike Fedyk
2003-12-17 21:55 ` bill davidsen
2003-12-17 17:02 ` bill davidsen [this message]
2003-12-17 20:14 ` Peter Zaitsev
2003-12-17 19:22 ` Jamie Lokier
2003-12-17 19:40 ` Linus Torvalds
2003-12-17 22:36 ` bill davidsen
2003-12-18 2:47 ` jw schultz
2003-12-17 22:29 ` bill davidsen
2003-12-18 2:18 ` jw schultz
2004-01-08 4:54 ` Greg Stark
2003-12-16 20:51 ` Andre Hedrick
2003-12-16 21:04 ` Andre Hedrick
2003-12-16 21:46 ` Witold Krecicki
2003-12-16 20:09 ` Witold Krecicki
2003-12-16 21:11 ` Adam Kropelin
2003-12-16 21:25 ` jw schultz
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='brq26h$6ei$1@gatekeeper.tmr.com' \
--to=davidsen@tmr.com \
--cc=linux-kernel@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