All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Haigh <netwiz@crc.id.au>
To: linux-raid@vger.kernel.org
Subject: Speeding up chunk size change?
Date: Sun, 04 Mar 2012 06:36:41 +1100	[thread overview]
Message-ID: <4F5272C9.3010906@crc.id.au> (raw)

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

Hi all,

I just wanted to run this past a few folk here as I want to make sure 
I'm doing it the Right Way(tm).

I've decided to experiment with using a 128Kb chunk size on my RAID6 
instead of a 64kb chunk. To prepare for this, I removed the internal 
bitmap, then started the reshape via:

# mdadm --grow /dev/md2 --chunk=128K --backup-file=/md2-backup-file

This is slowly going on, however it will take much longer than I expected:

md2 : active raid6 sdf[6] sde[5] sdb[4] sda[3]
       1953520896 blocks super 1.2 level 6, 64k chunk, algorithm 2 [4/4] 
[UUUU]
       [>....................]  reshape =  0.6% (6649600/976760448) 
finish=2576.1min speed=6275K/sec

I set a few 'optimisations' that I believe should help:
## Tweak the RAIDs
blockdev --setra 8192 /dev/sd[abcdefg]
blockdev --setra 8192 /dev/md0
blockdev --setra 8192 /dev/md1
blockdev --setra 16384 /dev/md2
echo 16384 > /sys/block/md2/md/stripe_cache_size

for i in sda sdb sdc sdd sde sdf; do
         echo "Setting options for $i"
         echo 256 > /sys/block/$i/queue/nr_requests
         echo 4096 > /sys/block/$i/queue/read_ahead_kb
         echo 1 > /sys/block/$i/device/queue_depth
         echo deadline > /sys/block/$i/queue/scheduler
done

Just wondering if anyone knows of any possible way to speed up the 
reshape a little, or if (like I suspect) it will take ~2 days to 
complete the reshape.

-- 
Steven Haigh

Email: netwiz@crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4952 bytes --]

             reply	other threads:[~2012-03-03 19:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03 19:36 Steven Haigh [this message]
2012-03-03 21:42 ` Speeding up chunk size change? Stan Hoeppner
2012-03-04  0:56   ` Steven Haigh
2012-03-04  2:24     ` Stan Hoeppner
2012-03-04  2:27       ` Steven Haigh
2012-03-04  2:37         ` Bernd Schubert

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=4F5272C9.3010906@crc.id.au \
    --to=netwiz@crc.id.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 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.