Impact of different RAID configurations on performance

I've benchmarked the disk performance of RAID5 and RAID10 containers, each with EXT3 and Reiserfs. Each test run 3 times.

This is to decide on the optimum configuration for a MySQL server, so I'll be doing some actual MySQL benchmarks with the same settings.

The test machine is a Dell Poweredge 1ghz Pentium III Coppermine, 256KB cache, 512MB RAM, with an Adaptec AIC-7899 Ultra 160/m SCSI host adapter. The OS is a standard RedHat Advanced Server 2.1 installtion.

EXT3 was used in "ordered" mode, and Reiserfs with defaults (i.e: tail mode on).

The tests were done with the Bonnie++ 1.03a disk benchmark software.

RAID 5 (3 disks)

Sequential Output Sequential Input Random
Seeks
Sequential Create Random Create
Size:Chunk SizePer CharBlockRewritePer CharBlockNum FilesCreateReadDeleteCreateReadDelete
K/sec% CPUK/sec% CPUK/sec% CPUK/sec% CPUK/sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU
ext3-ordered1G241882213102102953110602.125:4096:102436014++++++++701238713++++++++6197
ext3-ordered1G233072113042103029411471.625:4096:102437414++++++++692438513++++++++6208
ext3-ordered1G231352013234103797512587.125:4096:102437213++++++++692438115++++++++6228
reiserfs-r51G273692912671102632811628.435:4096:102431816282413408133101737241737513
reiserfs-r51G256292613007102849411628.335:4096:102430515384617396132911731611238213
reiserfs-r51G26558271305392764412633.525:4096:102430217398818398132971639491637513

This shows EXT3 with an avg output (write) of 23,543k/sec (13,126k/sec rewrite), and an avg input (read) of 32,600k/sec. ReiserFS with an avg output of 26,519k/sec (12,910k/sec rewrite), and an avg input of 27,488k/sec.

ReiserFS over EXT3 has a performance change for output of +11% (-2% rewrite) and +4% for input.

RAID 10 (4 disks)

Sequential Output Sequential Input Random
Seeks
Sequential Create Random Create
Size:Chunk SizePer CharBlockRewritePer CharBlockNum FilesCreateReadDeleteCreateReadDelete
K/sec% CPUK/sec% CPUK/sec% CPUK/sec% CPUK/sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU/ sec% CPU
ext3-ordered1G213761916212134171015695.135:4096:102437614++++++++704538614++++++++6208
ext3-ordered1G201121916095134449715724.035:4096:102438913++++++++703338414++++++++6208
ext3-ordered1G204271916205134227816749.435:4096:102438112++++++++484338215++++++++61910
reiserfs-r51G2579427967973905215761.135:4096:102431317380717397123101740851937413
reiserfs-r51G2399525982484730121778.545:4096:102431116381817395123131643641937214
reiserfs-r51G2371325986275534122744.135:4096:102431119302612404153121639371637313

This shows EXT3 with an avg output of 20,638k/sec (16,170k/sec rewrite), and an avg input of 42,828k/sec. ReiserFS with an avg output of 24,500k/sec (9,788k/sec rewrite), and an avg input of 47,231k/sec.

ReiserFS over EXT3 has a performance change for output of +16% (-40% rewrite) and +10% for input.

RAID 5 vs. RAID 10

For EXT3, RAID10 over RAID5 has a performance change for output of -14% (+23% rewrite), and +31% for input. This shows that for EXT3, RAID 10 is a benefit for reading and rewriting data, but is a hinderance to new output.

For ReiserFS, RAID10 over RAID5 has a performance change for output of +8% (-32% rewrite), and +72% for input. This shows that for ReiserFS, RAID 10 is a slight benefit for writing new data, a massive benefit to reading but quite a serious hinderance to rewriting.

Overall, RAID 10 certainly increases throughput when reading from disks, but can affect different filesystems in different ways for writing.

Valid HTML 4.01! Valid CSS!
$Date: 2003/09/09 09:34:42 $
(c) Copyright 2003 John Leach <john at johnleach dot co dot uk >