# # Latest Version # -------------- # http://www.1U-Raid5.net/ChunkStride/stride.txt # # # 11-Jan-02 amo Date-of-Birth # # # ----------------------------------- # What should the value be for stride ?? # ----------------------------------- # # # is stride the same as stripe size ?? ( i think its interchangeably used ?? ) # # RAID-0,4 and 5 use stripes # # mke2fs -b 4096 -R stride=32 ... /dev/md0 # # typically 32K, 64K stripe size # # -R stride flag is used to tell the file system about the size of the RAID stripes. # # # For a "-b 4096" block file system, with stripe size 256KB, one would use -Rstride=64 ( 256K/4K ) # # # stripe size is a Multiple of 2 ( especially important if using 3 or 5 disks ) # ------------------------------ # # # http://www.geocrawler.com/archives/3/57/1999/9/0/2699124/ # # keep your stripe unit close to the maximum read size of your physical disk # ( multiple of the disk`s track size, in sectors) # # # http://mail.nl.linux.org/linuxperf/1999-05/msg00248.html # # Build the stripe set with your chosen ( 64K ) chunk size across 4 disks: # mdcreate -c64k raid0 /dev/md2 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 # # mdadd /dev/md2; mdrun /dev/md2 # # use 4k blocks, 16k inodes # mke2fs -b 4096 -i 16384 -R stride=64 /dev/md2 # # the optimal stride is given by: # # chunk size # stride = ---------- * ( num disks ) = 16 * 4 = 64 # block size # # # http://www.cs.helsinki.fi/linux/linux-kernel/2001-44/0337.html # http://www.dandelion.com/Linux/README.DAC960 # /usr/src/linux/Documentation/README.DAC960 # # DAC960 controller's 64KB default stripe size ( 64K / 4K == 16 ) # # mke2fs -b 4096 -R stride=16 /dev/xx # # # http://www.1U-Raid5/Testing/raid_testing.sh.txt # # EXT2BLOCKSIZE=4096 # or 1024 or ??? # for CHUNKSIZE in 4 8 16 32 64 128 256 512 do stride=$(( $CHUNKSIZE * 1024 / $EXT2BLOCKSIZE )) .. .. create new /etc/raidtab and run the test .. mke2fs -b $EXT2BLOCKSIZE -m 1 -Rstride=$stride /dev/mdxx .. mount /dev/mdxx .. # whatever test .. tiobench bonnie dd .. done # # # # # Fastrack Raid stripping across drives # http://www6.tomshardware.com/storage/20000329/fastrak66-14.html # # # end of file