-1

Assume a single disk has a baseline of 1W & 1R performance, how does the different RAID configurations behave?

My initial guess:

Raid 0: 2W 2R 
Raid 1: 1W 2R
Raid 5:  ?  ?
Raid 6:  ?  ?
Raid 10: ?  ?

Updated:

Assumptions:

  • Using hardware RAID
  • With min. number of disks required, e.g.3 disks for Raid5
Howard
  • 2,005
  • 11
  • 47
  • 70

3 Answers3

1

With raid 0 you can theoretically get twice the read and write performance, but in practice that really depends on the workload. Raid 1 will not give you additional write performance, and I'm not sure whether it will give you extra read performance (it may read from both disks, but I don't know if it does).

When it comes to raid 5/6, that depends on a lot more than just the number of disks. Each read or write will result in at least two (three for raid 6) disks being used, and you also need computing resources (CPU or raid card) to calculate and verify the parity.

And all this leaves out (battery backed) write cache on the raid controller. That can cause an enormous performance increase as well (in fact, many of my databases wouldn't run without one!), and this increase is not related very much to raid level or number of disks.

So the only way to find an actual answer to your question is to try it out, tune the cache settings and tune your filesystem. No theoretical answer has any possibility of being correct, as most of the behaviour depends heavily on the application and configuration.

Dennis Kaarsemaker
  • 18,793
  • 2
  • 43
  • 69
  • 1
    Raid 1 - depends on controllre /programming. High end ones do. Heck, adaptec has a hybri raid (ssd, disc) and then redirects all reads to the SSD. – TomTom Apr 20 '13 at 09:42
1
  • R0: roughly double sequential performance
  • R1: no or slight negative impact on writes, 1-1.7 (estimate) factor on random reads
  • R10: roughly double everything ... (using linux mdadm and some tuning you can triple sequential reads)
  • R5 3drive: same as R0 2 drive(assuming your controller is powerful enough)
  • R6 4drive: same as R0 2 drive(assuming your controller is powerful enough)

both R5 and R6 can greatly degrade performance on small (random) writes because of the read-modify-write operations needed to write changes.

there is a lot of information, you are looking for on the Wikipedia article Standard RAID Levels

Fox
  • 3,887
  • 16
  • 23
0

It's non-linear, it depends on number of disks (RAID-5 can be ≥ 3 of them), stripe size, workload and so on. So this is completely wrong way to have performance estimation.

But what usually is taken into consideration is number of R/W-operations involved by single write operation on logical disk.

poige
  • 9,171
  • 2
  • 24
  • 50