Skip to contentSkip to conversation

Hardware vs. Software Raid Speed

DISCUSSION Marc Perkel 6 participants 7 messages Aug 23, 2006 – Aug 24, 2006

lore
Share & tools
lore
#0 lore raw

Running Linux on an AMD AM2 nVidia chip ser that supports Raid 0 striping on the motherboard. Just wondering if hardware raid (SATA2) is going to be faster that software raid and why?

#1 lore raw
Quoted 1 line · Marc Perkel

Running Linux on an AMD AM2 nVidia chip ser that supports Raid 0 striping on the motherboard. Just wondering if hardware raid (SATA2) is going to be faster that software raid and why?

Beeing a consumer type board (AM2), the "raid on the motherboard" is in 99.999% of the cases just software raid implemented in their Windows drivers, a bootup setup screen plus some BIOS magic to get the OS booting.

#2 lore raw
Quoted 8 lines · Andre Tomt
Quoted 3 lines · Marc Perkel

Running Linux on an AMD AM2 nVidia chip ser that supports Raid 0 striping on the motherboard. Just wondering if hardware raid (SATA2) is going to be faster that software raid and why?

Beeing a consumer type board (AM2), the "raid on the motherboard" is in 99.999% of the cases just software raid implemented in their Windows drivers, a bootup setup screen plus some BIOS magic to get the OS booting.

MD has so many benefits anyway that it doesn't make sense to use anything but the finest hardware RAID.

For starters, with Linux MD, you can RAID partitions on a disk independently, even with different RAID types, and you can port your array to another machine without any reconfiguration, on completely different hardware. You can also RAID two different technologies, for example PATA and SATA, hot-add spares, run with a deliberately failed array, build incomplete arrays (nice if you're just about to start a RAID5 but don't have enough discs), the list goes on..

Signature · 5 lines
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
#3 lore raw
In reply to Andre Tomt
Quoted 2 lines · Andre Tomt
Quoted 1 line · Marc Perkel

Running Linux on an AMD AM2 nVidia chip ser that supports Raid 0 striping on the motherboard. Just wondering if hardware raid (SATA2)

SATA2 has nothing to do with hardware RAID.

Quoted 3 lines
Quoted 1 line

is going to be faster that software raid and why?

Beeing a consumer type board (AM2), the "raid on the motherboard" is in 99.999% of the cases just software raid implemented in their Windows drivers, a bootup setup screen plus some BIOS magic to get the OS booting.

And, yeah, they're all software RAID. Also, there isn't much to be gained from making RAID0/1 hardware. The software overhead isn't that big. For RAID5, having XOR done in hardware helps.

Signature · 1 line
tejun
#4 lore raw
Quoted 4 lines · Tejun Heo
Quoted 2 lines · Andre Tomt
Quoted 1 line · Marc Perkel

Running Linux on an AMD AM2 nVidia chip ser that supports Raid 0 striping on the motherboard. Just wondering if hardware raid (SATA2)

Quoted 8 lines

SATA2 has nothing to do with hardware RAID.

Quoted 3 lines
Quoted 1 line

is going to be faster that software raid and why?

Beeing a consumer type board (AM2), the "raid on the motherboard" is in 99.999% of the cases just software raid implemented in their Windows drivers, a bootup setup screen plus some BIOS magic to get the OS booting.

And, yeah, they're all software RAID. Also, there isn't much to be gained from making RAID0/1 hardware. The software overhead isn't that big. For RAID5, having XOR done in hardware helps.

Thanks - I suspected that Raid 0 didn't gain anything in hardware unless they provided additional buffering or something but I just thought I'd ask in case there was something I was overlooking.

#5 lore raw
Quoted 17 lines · Marc Perkel
Quoted 14 lines · Tejun Heo
Quoted 3 lines · Andre Tomt
Quoted 2 lines · Marc Perkel

Running Linux on an AMD AM2 nVidia chip ser that supports Raid 0 striping on the motherboard. Just wondering if hardware raid (SATA2)

SATA2 has nothing to do with hardware RAID.

Quoted 6 lines
Quoted 1 line

is going to be faster that software raid and why?

Beeing a consumer type board (AM2), the "raid on the motherboard" is in 99.999% of the cases just software raid implemented in their Windows drivers, a bootup setup screen plus some BIOS magic to get the OS booting.

Quoted 8 lines
Quoted 4 lines

And, yeah, they're all software RAID. Also, there isn't much to be gained from making RAID0/1 hardware. The software overhead isn't that big. For RAID5, having XOR done in hardware helps.

Thanks - I suspected that Raid 0 didn't gain anything in hardware unless they provided additional buffering or something but I just thought I'd ask in case there was something I was overlooking.

A hardware raid controller can buy you a battery backed write cache, so there are potentially some performance/safety benefits potentially.

We have a mix of software raid and 3ware based hardware raid subsystems. For the applications we support, in general I can say that performance was not the discriminating reason to choose one over the other.

Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 3 lines
------------------------------------------------------------------------
Joel Jaeggli             Unix Consulting              [email protected]
GPG Key Fingerprint:   5C6E 0104 BAF0 40B0 5BD3 C38B F000 35AB B67F 56B2
#6 lore raw
In reply to Tejun Heo
Quoted 2 lines · Tejun Heo

And, yeah, they're all software RAID. Also, there isn't much to be gained from making RAID0/1 hardware. The software overhead isn't that

The CPU cycles in fact don't usually matter. The I/O overhead (on the PCI bus) due to multiple transfers of the (more or less) same data is typically more interesting.

regards
Mario

Signature · 3 lines
The secret that the NSA could read the Iranian secrets was more
important than any specific Iranian secrets that the NSA could
read.                           -- Bruce Schneier