All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Alex <mysqlstudent@gmail.com>, Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Need to remove failed disk from RAID5 array
Date: Mon, 23 Jul 2012 00:14:08 -0400	[thread overview]
Message-ID: <500CCF90.5030002@tmr.com> (raw)
In-Reply-To: <CAB1R3sgV9e9Ngvh+H6VtDB=mSfvPC8S3hafOncasz+EmTWRA-A@mail.gmail.com>

Alex wrote:
> Hi,
>
>>> That's a good argument for not using "whole disk" array members, a partition can
>>> be started at a good offset and may perform better. As for the speed, since it
>>> is reconstructing the array data (hope the other drives are okay), every block
>>> written requires three blocks read and a reconstruct in cpu and memory. You can
>>> use "blockdev" to increase readahead, and set the devices to use the deadline
>>> scheduler, that _may_ improve things somewhat, but you have to read three block
>>> to write one, so it's not going to be fast.
>>>
>>
>> Read-ahead has absolutely no effect in this context.
>>
>> Read-ahead is a function of the page cache.  When filling the page cache,
>> read-ahead suggests how much more to be read than has been asked for.
>>
>> resync/recovery does not use the page cache, consequently the readahead
>> setting is irrelevant.
>>
>> IO scheduler choice may make a difference.
>
> It's already set for cfq. I assume that would be the preferred over deadline?
>
> I set it on the actual disk devices. Should I also set it on md0/1
> devices as well? It is currently 'none'.
>
> /sys/devices/virtual/block/md0/queue/scheduler

For what it's worth, my experience has beem that deadline works better for 
writes to arrays. In arrays with only a few drives, sometimes markedly better.


-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot



  parent reply	other threads:[~2012-07-23  4:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 23:17 Need to remove failed disk from RAID5 array Alex
2012-07-18 20:26 ` Bill Davidsen
2012-07-19  2:44   ` Alex
2012-07-19  3:16     ` Roman Mamedov
2012-07-19 14:25       ` Bill Davidsen
2012-07-19 14:35         ` Roman Mamedov
2012-07-19 14:51           ` Bill Davidsen
2012-07-19 21:08         ` NeilBrown
2012-07-20  1:04           ` Alex
2012-07-20  1:22             ` Bill Davidsen
2012-07-20  1:37             ` NeilBrown
2012-07-23  4:14             ` Bill Davidsen [this message]
2012-07-24 14:02               ` Alex
2012-07-19 15:37       ` Alex

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=500CCF90.5030002@tmr.com \
    --to=davidsen@tmr.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mysqlstudent@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.