From: Neil Brown <neilb@suse.de>
To: Jon Nelson <jnelson-linux-raid@jamponi.net>
Cc: LinuxRaid <linux-raid@vger.kernel.org>
Subject: Re: AWFUL reshape speed with raid5.
Date: Fri, 1 Aug 2008 11:26:22 +1000 [thread overview]
Message-ID: <18578.26174.118449.299867@notabene.brown> (raw)
In-Reply-To: message from Jon Nelson on Monday July 28
On Monday July 28, jnelson-linux-raid@jamponi.net wrote:
> I built a raid5 with 2 devices (and --assume-clean) using 2x 4GB
> partitions (not logical volumes).
> I then grew it to 3 devices.
> The reshape speed is really really slow.
...
>
> Kernel is 2.6.25.11 (openSUSE 11.0 x86-64 stock)
>
> /proc/mdstat for this entry:
>
> md99 : active raid5 sdd3[2] sdc3[1] sdb3[0]
> 3903744 blocks super 1.0 level 5, 64k chunk, algorithm 2 [3/3] [UUU]
> [=>...................] reshape = 8.2% (324224/3903744)
> finish=43.3min speed=1373K/sec
>
1.3MB/sec is certainly slow. On my test system (which is just a bunch
of fairly ordinary SATA drives in a cheap controller) I get about 10
times this - 13MB/sec.
>
> This is on a set of devices capable of 70+ MB/s.
The 70MB/s is streaming IO. When doing a reshape like this, md/raid5
need to read some data, then go back and write it somewhere else. So
there is lots of seeking backwards and forwards.
You can possibly increase the speed somewhat by increasing the buffer
space that is used, thus allowing larger reads followed by larger
writes. This is done by increasing
/sys/block/mdXX/md/stripe_cache_size
Still, 1373K/sec is very slow. I cannot explain that.
NeilBrown
next prev parent reply other threads:[~2008-08-01 1:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 17:39 AWFUL reshape speed with raid5 Jon Nelson
2008-07-28 18:14 ` Justin Piszcz
2008-07-28 18:24 ` Jon Nelson
2008-07-28 18:55 ` Jon Nelson
2008-07-28 19:17 ` Roger Heflin
2008-07-28 19:43 ` Justin Piszcz
2008-07-28 19:59 ` David Lethe
2008-07-28 20:56 ` Jon Nelson
2008-07-30 16:23 ` Bill Davidsen
2008-07-30 16:31 ` Jon Nelson
2008-07-30 17:08 ` Justin Piszcz
2008-07-30 17:48 ` Jon Nelson
2008-08-01 1:43 ` Neil Brown
2008-08-01 13:23 ` Jon Nelson
2008-08-01 15:57 ` Jon Nelson
2008-07-30 16:50 ` David Greaves
2008-07-30 17:24 ` Bill Davidsen
2008-08-01 1:26 ` Neil Brown [this message]
2008-08-01 13:14 ` Jon Nelson
2008-08-21 2:58 ` Jon Nelson
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=18578.26174.118449.299867@notabene.brown \
--to=neilb@suse.de \
--cc=jnelson-linux-raid@jamponi.net \
--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).