linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Speeding up chunk size change?
@ 2012-03-03 19:36 Steven Haigh
  2012-03-03 21:42 ` Stan Hoeppner
  0 siblings, 1 reply; 6+ messages in thread
From: Steven Haigh @ 2012-03-03 19:36 UTC (permalink / raw)
  To: linux-raid

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-04  2:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-03 19:36 Speeding up chunk size change? Steven Haigh
2012-03-03 21:42 ` 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

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).