From: NeilBrown <neilb@suse.de>
To: Alex <mysqlstudent@gmail.com>
Cc: Bill Davidsen <davidsen@tmr.com>, Roman Mamedov <rm@romanrm.ru>,
Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Need to remove failed disk from RAID5 array
Date: Fri, 20 Jul 2012 11:37:17 +1000 [thread overview]
Message-ID: <20120720113717.7888da79@notabene.brown> (raw)
In-Reply-To: <CAB1R3sgV9e9Ngvh+H6VtDB=mSfvPC8S3hafOncasz+EmTWRA-A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]
On Thu, 19 Jul 2012 21:04:17 -0400 Alex <mysqlstudent@gmail.com> 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?
The one that is preferred is the one that works best. I suggest trying them
all and seeing what effect they have on your workload.
>
> 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
The queue/scheduler is meaningless for md devices. They do not use the
block-layer queuing code.
The queue/scheduler setting on the actual devices is meaningful.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-07-20 1:37 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 [this message]
2012-07-23 4:14 ` Bill Davidsen
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=20120720113717.7888da79@notabene.brown \
--to=neilb@suse.de \
--cc=davidsen@tmr.com \
--cc=linux-raid@vger.kernel.org \
--cc=mysqlstudent@gmail.com \
--cc=rm@romanrm.ru \
/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.