From: Mario Giammarco <mgiammarco@virgilio.it>
To: maarten van den Berg <maarten@vbvb.nl>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID1 VS RAID5
Date: Sun, 26 Oct 2003 19:22:48 +0100 [thread overview]
Message-ID: <1067192568.1280.6.camel@cala> (raw)
In-Reply-To: <200310261716.17030.maarten@vbvb.nl>
Il dom, 2003-10-26 alle 17:16, maarten van den Berg ha scritto:
> Raid1 being a mirror set it does not make sense to
> interleave anything. Either disk1 reads it first or disk2 reads it first.
> Once you get the data from either disk, then you're done; no need to wait for
> the second disk (giving you the identical datablock).
OK I have some difficulties to explain it, I will try again: usually
linux do read prefetch so when you read block "n" after it linux reads
block "n+1". So the "n+1" block can be read at the same time on the
other disk.
Reading past mailing lists posts it seems that raid1 behaviour is this:
1) disk idle
2) request for block "n"
3) request is passed to hard disk with head nearer to block "n" (is it
true? I am not sure)
4) request to block "n+1" "n+2" etc. are on the same disk so THE OTHER
DISK IS READY FOR A READ REQUEST FROM OTHER PROCESSES
5) if sequential reading continue after some minutes the other disk is
chosen to not stress too much only one disk (is it true?)
Obviously this behaviour (point 4) helps servers with a lot of
multitasking and processes.
I prefer a "sequential" optimization.
Can it be done?
Thanks again!
next prev parent reply other threads:[~2003-10-26 18:22 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-26 14:45 RAID1 VS RAID5 Mario Giammarco
2003-10-26 16:16 ` maarten van den Berg
2003-10-26 18:22 ` Mario Giammarco [this message]
2003-10-27 8:27 ` Hermann Himmelbauer
2003-10-27 9:54 ` Lars Marowsky-Bree
2003-10-27 10:16 ` Jeff Woods
2003-10-28 10:45 ` Mario Giammarco
2003-10-27 11:08 ` maarten van den Berg
2003-10-27 12:03 ` Jeff Woods
2003-10-26 16:55 ` Matti Aarnio
2003-10-28 10:46 ` Mario Giammarco
2003-10-27 8:33 ` Hermann Himmelbauer
2003-10-27 9:19 ` Gordon Henderson
2003-10-27 11:01 ` Hermann Himmelbauer
2003-10-27 13:40 ` Gordon Henderson
2003-10-27 15:34 ` Hermann Himmelbauer
2003-10-27 14:17 ` Lars Marowsky-Bree
2003-10-27 15:52 ` Andrew Herdman
2003-10-28 10:40 ` Mario Giammarco
-- strict thread matches above, loose matches on Subject: below --
2003-10-26 11:24 Mario Giammarco
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=1067192568.1280.6.camel@cala \
--to=mgiammarco@virgilio.it \
--cc=linux-raid@vger.kernel.org \
--cc=maarten@vbvb.nl \
/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).