Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Goswin von Brederlow <goswin-v-b@web.de>
To: "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com>
Cc: Goswin von Brederlow <goswin-v-b@web.de>,
	Keld Jorn Simonsen <keld@keldix.com>,
	linux-raid@vger.kernel.org
Subject: Re: Linux MD RAID 1 read performance tunning
Date: Thu, 24 Dec 2009 13:41:56 +0100	[thread overview]
Message-ID: <87zl585ysr.fsf@frosties.localdomain> (raw)
In-Reply-To: <8e04b5820912240116k6c93333byfcd0dc6b82fedec0@mail.gmail.com> (Ciprian Dorin's message of "Thu, 24 Dec 2009 11:16:25 +0200")

"Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> writes:

>     Thanks all for your feedback. (I haven't tried the proposed three
> dd's in parallel, but I promise I'll try them the next time I assemble
> my backup array.)
>
>     But one observation though:
>     * indeed my usage of the array was mono-process;
>     * when reading from the array to construct the MD5 sums for the
> files I've used only one process;
>     * indeed the data was read from a single disk (at a time);
>     * but now the interesting think comes: I think it favored one disk
> (the same most of the time) over the others;
>
>     Is this as expected?
>
>     Thanks again,
>     Ciprian.

I don't think it should favour any one disk in particular. But it
might be that if all disks are at the same place (e.g. you just wrote
something) it will always pick the first one. You have to check the
source for that or maybe Neil knows from memory.

But you can tune this:

       -W, --write-mostly
              subsequent devices listed in a --build, --create, or
              --add com- mand will be flagged as 'write-mostly'.  This
              is valid for RAID1 only and means that the 'md' driver
              will avoid reading from these devices if at all
              possible.  This can be useful if mirror- ing over a slow
              link.

       --write-behind=
              Specify that write-behind mode should be enabled (valid
              for RAID1 only).  If an argument is specified, it will
              set the maxi- mum number of outstanding writes allowed.
              The default value is 256.  A write-intent bitmap is
              required in order to use write- behind mode, and
              write-behind is only attempted on drives marked as
              write-mostly.

Since you mentioned that you have different speeds on the disks maybe
you should set this for the slow drive(s).

MfG
        Goswin

      reply	other threads:[~2009-12-24 12:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 16:34 Linux MD RAID 1 read performance tunning Ciprian Dorin, Craciun
2009-12-22 16:52 ` Keld Jørn Simonsen
2009-12-22 17:08   ` Ciprian Dorin, Craciun
2009-12-22 18:22     ` Keld Jørn Simonsen
2009-12-24  9:03       ` Goswin von Brederlow
2009-12-24  9:16         ` Ciprian Dorin, Craciun
2009-12-24 12:41           ` Goswin von Brederlow [this message]

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=87zl585ysr.fsf@frosties.localdomain \
    --to=goswin-v-b@web.de \
    --cc=ciprian.craciun@gmail.com \
    --cc=keld@keldix.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