Sunday March 21, 2010 3:42 AM AEST

RAID Theory

  • Email a Friend
  • Print Page
«  »
RAID Theory
By Ashton Mills
May 19, 2008 | 4 Comments
Tags: RAID
On that note, we have to talk about the RAID hardware component. First and foremost, lets be clear: the onboard RAID controllers that you find on NVIDIA and Intel based motherboards are not hardware RAID. Don’t be fooled by the fact the feature is provided by a ‘chip’ on the motherboard – this is little more than disk translation firmware. In truth onboard RAID controllers – often called FakeRAID controllers – do all their work in their driver in the OS. In other words, your CPU is the RAID ‘hardware’.

Proper hardware RAID controllers are external plug-in cards that utilise their own onboard processors, and sometimes memory as well. They are optimised to manage RAID devices as well to provide for more complex RAID schemes like RAID 5 and above. Yes, many FakeRAID controllers also support RAID 5, but they do it rather poorly and won’t give you good performance – if you’re determined to use RAID 5, buy a proper hardware solution. For onboard controllers stick to RAID 0, RAID 1, or RAID 0+1.

Of course, external RAID cards are also expensive whereas onboard motherboard RAID is technically free. As always, you get what you pay for. Still, while they won’t work miracles you can build some pretty beefy arrays with onboard controllers and, more importantly, software RAID.

What’s software RAID? Both Windows and Linux come with the capability to build arrays through the OS itself. If you’re wondering what the difference is between driver-based FakeRAID controllers and software RAID, seeing as they both use the CPU, the answer is not a lot – although, as we’ll also cover later in the benchmarks, they can perform quite differently (see, we think of everything!).


Stripe science
Now onto the meat of this feature – the all important stripe size. Quick primer for those scratching their heads: the stripe size is the size of the data that will be ‘striped’ across each drive in an array. If you have a 96k file to write on a three drive array with a stripe size of 64k, it will be striped across two drives. If the array used a stripe size of 32k, it would span all three drives. Having files striped across more drives is conducive to better throughput, but this doesn’t necessarily translate to better performance – it all comes back to the workload.

Unfortunately some enthusiasts new to RAID will select the ‘recommended’ stripe size in their FakeRAID controller, usually 128k. Conventional wisdom states that a stripe size of 128k and above is ideal for large file transfer performance, and indeed this is true – but only because it’s assumed the files are so large as to spread across multiple disks with the given stripe size. What actually gives better throughput performance however are lower stripes – the smaller these are the more files that will be striped across the drives, and in more stripes (that is – more files spanning across more drives).

Indeed, in terms of seek vs throughput, larger stripes are actually better – why? Because small files will reside on one disk only, freeing up the other disk for the next I/O request. Smart RAID algorithms can use this to parallelise requests across the disks, each serving up separate complete files.

So those of you thinking you’ll jump to the low stripe size of 8k or 16k – yes your throughput scores will skyrocket, but your random access scores will plummet. Use a large stripe size of 128k or 256k and you’ll ensure great seek performance scores, but your throughput won’t be taking full advantage of the striped nature of your array.

This is why a stripe size of 64k is often recommended as the best ‘balance’. And, in fact, it does perform very well for both types of workload. However there’s one more factor you need to consider – the number of drives in the array.

If, for example, you set up a four-drive RAID 0 array with a stripe size of 128k, a good chunk of the files on your system will never benefit from being striped, or only be striped across two or three drives. If throughput is your priority, if you’re building for video streaming or benchmarking for example, then a good rule of thumb is that the more drives you use, the smaller you need your stripe size to be to ensure files are striped across the drives in the array.

And yes, this means of course there is a ceiling to the effectiveness of drives in a RAID 0 array – you can’t keep throwing drives at it and expect to see a linear increase in performance. For this reason, RAID-0 arrays are optimal between two and four drives, but if you go for four drives you might as well use RAID 0+1 and gain both speed and redundancy.

In summary smaller stripe sizes of 32k, 16k, and even 8k can offer greater performance for sustained throughput, but this comes at the cost of seek performance (if this is important to you). Similarly 128k and 256k stripes allow for much greater parallelism of the drives, but throughput can suffer on files that could otherwise be striped.

As a result the accepted norm for a balanced value is 64k – and this is exactly what Windows will use if you create a ‘striped’ RAID volume. Unfortunately, Windows won’t let you change this so it’s the only option if you use software RAID.

So that’s plenty of theory, let’s see how it works in practice. To see just what impact stripe size, array size, seek vs throughput, and software RAID vs FakeRAID all have on performance we did the only thing a sane Atomican can do – we benchmarked to buggery.

 
«  »
 
This article appeared in the May, 2008 issue of Atomic.

Want to check out the first Australian review of Final Fantasy XIII? We got in this month's Atomic!

Plus HD projectors, Napoleon: Total War, Intel's new six-core processor, PC upgrading guide, and a whole lot more.

ON SALE NOW!
4 Comments
Thoughts on this article? Add a comment below.
Fat_Bodybuilder
Sep 17, 2008 10:31 AM
Is parallelism a real word? :P

Nice work ;-)
osama_bin_athlon
Sep 17, 2008 8:15 PM
er, HDD's are cheaper than ever......under $80 for a 500G (Maxtor 500G $78 @ MSY, for instance), how's that expensive?
Goonit
Sep 20, 2008 9:28 AM
Wow, I've been under the impression it would make a huge difference to load times, doesn't seem the case at all.

One newer generation hard drive, is better then 2 older in raed. :)

Atomic always answers the questions we ponder,
Thanks for the article.

Fat_Bodybuilder
Sep 21, 2008 7:44 PM
Remember that this is covering RAID0, which is not really RAID at all.

And this is a very old article, HDDs were still a little expensive, then.
Login or register to submit a comment.
 
 
Atomic Magazine

Issue: 111 | April, 2010

Atomic is a magazine aimed squarely at computer enthusiasts, gamers, and serious PC upgraders.

Every month we bring you the latest reviews of new technology and PC components, in depth features on everything from overclocking to console hacking, and gaming previews and interviews.
 
Latest Comments
"Send your good taste to celebration by delivering our mouthwatering cakes to Dehradun and exotic ..."
by rony24 | Mar 20, 2010 4:56 PM
 
"So. Much. Awesome."
by The Manta | Mar 20, 2010 4:23 PM
 
"@sirtrancealot, BF started on the PC and BC1 only on Consoles was a kick to the PC gamers ..."
by NRUFrost | Mar 20, 2010 8:14 AM
 
"RAGE!!!"
by Hawkeye | Mar 20, 2010 1:24 AM
 
"alex - bugger all. 78mg of caffeine. About the same as a cup of instant coffee. Taurine, Gurana ..."
by tantryl | Mar 20, 2010 12:51 AM
 
1) Nokia E7147 plans 33%
2) Apple iPhone 3GS 32GB36 plans 33%
3) Apple iPhone 8GB43 plans 22%
4) HTC Magic5 plans 33%
5) Nokia N9740 plans 33%
1) iiNet32 plans 100%
2) Optus41 plans 14%
3) Vodafone7 plans 5%
4) Telstra BigPond30 plans 1%
5) Dodo34 plans 6%

Mobiles | Broadband | Credit Cards

Haymarket - Atomic MPC
Latest User Reviews
Logitech MX518 Gaming-Grade Optical Mouse
90%
Good shape, design and Ergonomics
 
Coolermaster HAF 922
100%
A case to make a statment and give your pc the Heavy Hardcore Grunt it needs.
 
Coolermaster Excalibur
50%
Atomic is under attack
 
XFX 9300 Motherboard
40%
HUGE letdown
 
CM Storm Sentinel gaming mouse
90%
Sexy and instant geek respect.