linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Hill <robin@robinhill.me.uk>
To: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: Stupid question regarding RAID-1 access pattern
Date: Wed, 6 Jan 2010 21:37:23 +0000	[thread overview]
Message-ID: <20100106213723.GA12318@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <4B44EB58.2090400@northarc.com>

[-- Attachment #1: Type: text/plain, Size: 1827 bytes --]

On Wed Jan 06, 2010 at 02:58:16PM -0500, Curt Hartung wrote:

> Tried to ferret out the answer to this myself and so far so bad.
> 
> This just 'popped in there' while I was optimizing something completely 
> different... in a RAID-1, writes have to be mirrored of course, thats 
> what RAID-1 is, but for reads, could they not be sped up by a 
> significant amount if a storage pattern was chosen such that large 
> blocks of data were "striped" in an in-order/out-of-order scheme? In 
> other words, store all the data on both drives, but in huge (2x cache 
> size) -ish blocks that might allow 50% of a given [large] access to come 
> from each drive, with trivial [smaller] reads always coming from one or 
> the other chosen at random.
> 
> Downside, I know, is that the data would be organized ina  way only the 
> raid subsystem would understand, so the niceness of pulling a mirrored 
> drive out of service and it being a literal copy of the otehr drive 
> would be lost, but for such a speedup I'd be willing to pay the price of 
> always having to access it as a failed set (worst case) through the 
> md-daemon.
> 
> Am I off into the weeds?
I doubt this would help much really.  If you're reading sequential data
then it's pretty much as quick to keep reading as to seek to the next
chunk.  If you want a performance and are prepared to throw out strict
RAID1 compatibility then RAID10-f2 may be better suited.  It still
provides the same redundancy but improves read performance by striping
(there's some slowdown on writes but not much).

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 --]

  reply	other threads:[~2010-01-06 21:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-06 19:58 Stupid question regarding RAID-1 access pattern Curt Hartung
2010-01-06 21:37 ` Robin Hill [this message]
2010-01-06 22:13   ` Billy Crook
2010-01-06 23:10     ` Robin Hill
2010-01-21  7:34   ` Erno Kuusela
2010-01-21  8:09     ` Asdo
2010-01-07 15:17 ` Leslie Rhorer

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=20100106213723.GA12318@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).