Linux RAID subsystem development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Jonathan Molyneux <jonathan@infinitedepth.com.au>
Cc: linux-raid@vger.kernel.org
Subject: Re: raid5 to raid6 - reshape very slow
Date: Tue, 29 May 2012 10:56:19 +1000	[thread overview]
Message-ID: <20120529105619.4dd15511@notabene.brown> (raw)
In-Reply-To: <4FC41970.5080009@infinitedepth.com.au>

[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]

On Tue, 29 May 2012 10:33:52 +1000 Jonathan Molyneux
<jonathan@infinitedepth.com.au> wrote:

> Hi Everyone,
> 
> I'm currently reshaping my raid5 array into a raid6 array (by adding a 
> spare and growing).
> 
> Unfortunately I didn't research the nuances before doing so and missed 
> the opportunity to --layout=preserve.
> 
> As a result the array is rebuilding by use of a backup-file, at a rather 
> slow pace.
> 
> md1 : active raid6 sde1[0] sdb1[6] sdh1[5] sdc1[4] sdg1[3] sdd1[2] sdf1[1]
>        7325679680 blocks super 0.91 level 6, 64k chunk, algorithm 18 
> [7/6] [UUUUUU_]
>        [=========>...........]  reshape = 47.0% (689413888/1465135936) 
> finish=4126.9min speed=3132K/sec
> 
> I have tried the following so far:
> 
> * read ahead tweaking
> * stripe_cache_size tweaking (not a limiting factor - mdadm seems to 
> tune this appropriately)
> * running the backup file from dev/shm (only for testing purposes)
> 
> The reshape does not seem to be IO or CPU bound, it just seems to be 
> limited by the sync's and meta data updates to each disk.
> 
> Is it possible to increase the buffer/stripes that mdadm process in a 
> batch to speed up the process (~41m/2 -> 1G) ?
> 
> Any thoughts would be appreciated (even to confirm there is nothing to 
> be done).

The only thing to do is to wait.  This is very much a seek-bound operation
and there is little room for making it go faster.

In a few months we might see the need for the backup file disappear, which
will improve things somewhat, but it will still be slowish.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2012-05-29  0:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29  0:33 raid5 to raid6 - reshape very slow Jonathan Molyneux
2012-05-29  0:56 ` NeilBrown [this message]
2012-05-29  7:21   ` Stan Hoeppner
2012-05-29  9:59     ` jonathan
2012-05-29 14:44       ` Alexander Kühn

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=20120529105619.4dd15511@notabene.brown \
    --to=neilb@suse.de \
    --cc=jonathan@infinitedepth.com.au \
    --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