Skip to contentSkip to conversation

Has anyone compared SWRAID for (JBOD@HW-RAID) vs. (Regular Sata PCI-e cards)?

DISCUSSION David Lethe 4 participants 5 messages May 10, 2008 – May 11, 2008 MD RAID

lore
Share & tools
lore
#0 lore raw

You can't generalize whether HW RAID is faster or slower than SW RAID.
I/O mix, CPU speed, bus type, RAM, file system type/config, queue depth, specific RAID card, drivers, firmware all have significant impact. Even with info you supply, one can easily model config where either RAID architecture will outperform the other.

if performance is vital for you on a certain pc config, then tune everything for HW RAID, test, rebuild for SW RAID, and compare. Don't forget to yank power to a disk while testing both to see how each work under stress, as well as when consistency checks run.

-----Original Message-----

From:  "Justin Piszcz" <[email protected]>
Subj:  Has anyone compared SWRAID for (JBOD@HW-RAID) vs. (Regular Sata PCI-e cards)?
Date:  Sat May 10, 2008 4:23 am
Size:  844 bytes
To:  "[email protected]" <[email protected]>

I was curious if you have for example 5 PCI-e x8 slots:

1. 2x sata port card
2. 2x sata port card
3. 2x sata port card
4. 2x sata port card
5. 2x sata port card

Would that be faster than:

1. 16port 3ware (or) 16port areca

    drives -> jbod 

Does anyone here use SW RAID on the second configuration with 10,000 rpm drives or more than ~10 drives in a RAID5? If so what kind of read/write speed do you achieve? I am curious if a single card with that many ports, even running jbod can really push the bandwidth you achieve by splitting the drives up over multiple PCI-e slots as shown in the first example.

Justin.

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-raid" in 
the body of a message to [email protected] 
More majordomo info at  http://vger.kernel.org/majordomo-info.html 
#1 lore raw
Quoted 4 lines · David Lethe

You can't generalize whether HW RAID is faster or slower than SW RAID.
I/O mix, CPU speed, bus type, RAM, file system type/config, queue depth, specific RAID card, drivers, firmware all have significant impact. Even with info you supply, one can easily model config where either RAID architecture will outperform the other.

if performance is vital for you on a certain pc config, then tune everything for HW RAID, test, rebuild for SW RAID, and compare. Don't forget to yank power to a disk while testing both to see how each work under stress, as well as when consistency checks run.

.. What I meant was is JBOD using a single card with 16 ports faster than using JBOD with multiple PCI-e SATA cards?

Justin.

#2 lore raw
Quoted 2 lines · Justin Piszcz

.. What I meant was is JBOD using a single card with 16 ports faster than using JBOD with multiple PCI-e SATA cards?

JBOD on a HW RAID card is really wasting it's primary purpose, offloading RAID processing from the CPU, and consolidating large transactions.

Using HW RAID-1 means that, for example, _one_ copy of a 4k write to a RAID-1 device goes the card, which performs data replication to each device. In SW RAID's case, $N copies cross the PCI bus, one copy for each device in the RAID-1 mirror.

In HW RAID-5, one 4k write can go to the card, which then performs the parity calculation and data replication. In SW RAID-5, the parity calculation occurs on the host CPU, and $N copies go across the PCI bus.

Running HW RAID in JBOD mode eliminates all the efficiencies of HW RAID just listed. You might as well run normal SATA at that point, because you gain additional flexibility and faster performance.

But unless you are maxing out PCI bus bandwidth -- highly unlikely for PCI Express unless you have 16 SSDs or so -- you likely won't even notice SW RAID's additional PCI bus use.

And of course, there are plenty of other factors to consider. I wrote a bit on this topic at http://linux.yyz.us/why-software-raid.html

Jeff

#3 lore raw
Quoted 3 lines · Jeff Garzik

And of course, there are plenty of other factors to consider. I wrote a bit on this topic at http://linux.yyz.us/why-software-raid.html

So that is you writing this page! I think it is one of the more useful pages on raid (many others are quite outdated).

I have a suggestion for an advantage for SW raid, that you could consider for your page:

- potential for increased performance, due to more intelligent layouts, for example the linux raid10,f2 has more than double the performance for both sequential reads and random reads compared to most hardware RAID1, and Linux SW RAID1.

- potential for better error handling, due to more intelligent drivers. Linux raid10 has better error handling than linux RAID1 and possibly also HW RAID1.

And then, if you could link to our HOWTO pages at
http://linux-raid.osdl.org/ that would improve the visibility for our pages. It seems like not many are referencing our pages, so if people on this list would make a link to http://linux-raid.osdl.org/ that would increase the chance of our information to be seen.

Best regards
keld

#4 lore raw
Quoted 20 lines · Keld Jørn Simonsen
Quoted 3 lines · Jeff Garzik

And of course, there are plenty of other factors to consider. I wrote a bit on this topic at http://linux.yyz.us/why-software-raid.html

So that is you writing this page! I think it is one of the more useful pages on raid (many others are quite outdated).

I have a suggestion for an advantage for SW raid, that you could consider for your page:

- potential for increased performance, due to more intelligent layouts, for example the linux raid10,f2 has more than double the performance for both sequential reads and random reads compared to most hardware RAID1, and Linux SW RAID1.

- potential for better error handling, due to more intelligent drivers. Linux raid10 has better error handling than linux RAID1 and possibly also HW RAID1.

Quoted 8 lines

And then, if you could link to our HOWTO pages at
http://linux-raid.osdl.org/ that would improve the visibility for our pages. It seems like not many are referencing our pages, so if people on this list would make a link to http://linux-raid.osdl.org/ that would increase the chance of our information to be seen.

Best regards
keld

Another advantage of SW raid:

- SW RAID is more flexible. On a set of drives you can with SW RAID mix different types of raid, for example the /boot partition could be RAID1 so that it can be booted by grub/lilo, the / partition could be raid10,f2 for greater read performance, and the data partition could be raid5 to get more effective space out of your drives. In HW RAID you can only allocate whole disks to one RAID type.

best regards
Keld
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html