From: David Greaves <david@dgreaves.com>
To: Niccolo Rigacci <niccolo@rigacci.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: New FAQ entry? (was IBM xSeries stop responding during RAID1 reconstruction)
Date: Wed, 21 Jun 2006 18:10:38 +0100 [thread overview]
Message-ID: <44997D8E.2090406@dgreaves.com> (raw)
In-Reply-To: <20060621160907.GA20630@rigacci.org>
OK :)
David
Niccolo Rigacci wrote:
> Thanks to the several guys in this list, I have solved my problem
> and elaborated this, can be a new FAQ entry?
>
>
>
> Q: Sometimes when a RAID volume is resyncing, the system seems to
> locks-up: every disk activity is blocked until resync is done.
>
> A: This is not strictly related to Linux RAID, this is a problem
> related to the Linux kernel and the disk subsytem: in no
> circumstances a process should get all the disk resources
> preventing others to access them.
>
> You can control the max speed at which RAID reconstruction is
> done by setting it, say at 5 Mb/s:
>
> echo 5000 > /proc/sys/dev/raid/speed_limit_max
>
> This is just a workaround, you have to determine the max speed
> that does not lock your system by trial and error and you cannot
> predict what will be the disk load in the future when the RAID
> will be resyncing for some reason.
>
> Starting from version 2.6, Linux kernel has several choices about
> the I/O scheduler to be used. The default is the anticipatory
> scheduler, which seems to be sub-optimal on resync high load. If
> your kernel has the CFQ scheduler compiled in, use it during
> resync.
>
> >From the command line you can see which schedulers are supported
> and change it on the fly (remember to do it for each RAID disk):
>
> # cat /sys/block/hda/queue/scheduler
> noop [anticipatory] deadline cfq
> # echo cfq > /sys/block/hda/queue/scheduler
>
> Otherwise you can recompile your kernel and set CFQ as the
> default I/O scheduler (CONFIG_DEFAULT_CFQ=y in Block layer, IO
> Schedulers, Default I/O scheduler).
>
>
>
--
next prev parent reply other threads:[~2006-06-21 17:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 16:09 New FAQ entry? (was IBM xSeries stop responding during RAID1 reconstruction) Niccolo Rigacci
2006-06-21 17:10 ` David Greaves [this message]
2006-06-21 18:51 ` Michael Tokarev
2006-06-22 2:20 ` Mark Hahn
2006-06-22 4:35 ` Gil
2006-06-22 7:11 ` Niccolo Rigacci
2006-06-23 3:14 ` Bill Davidsen
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=44997D8E.2090406@dgreaves.com \
--to=david@dgreaves.com \
--cc=linux-raid@vger.kernel.org \
--cc=niccolo@rigacci.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).