Saturday, 19 January 2019

linux - Does fake RAID offer any advantage over software RAID?


Does a fake RAID controller do any useful work or is it just like a place where to store the parameters? I know that Linux offers much more flexibility than my poor on-board controller, but this is not important for me.


Is there any performance advantage by using the fake RAID?



Answer



Generally speaking there is no significant performance difference at all between software RAID and fake RAID, as fake RAID is more-or-less software RAID anyway.


Any parity calcs (for RAID5 and similar) will be done in the CPU in either case (and I'd be more trusting of the OS to be efficient and well tested/stable/supported than the fake-RAID drivers especially for a cheap mobo/controller so you might find fake-RAID less speedy and less reliable), also any block reads needed in order to update parity blocks have to go over the controller to the OS in both cases.


Also, the multiple drive writes issue exists in either case - to write to a block on a two-drive RAID1 for instance means two writes by the OS to the controller with both software and fake RAID - with hardware RAID there is always just one write to the controller and it manages talking to the drives potentially in parallel rather than sequentially. With software/fake the writes may also be parallel, but it depends on the I/O controllers and drivers supporting this (it is more likely with software RAID if your drives are not all on the same controller, so again there is potential for fake RAID to actually be a little slower in that circumstance).


In general Fake RAID takes the bad bits of the software RAID (potential CPU hit and I/O latency because of it, inability to multiplex writes (depending on controller/drivers/OS) to save bus bandwidth, no hardware cache) with the bad bits of hardware RAID (vendor dependence and sometimes controller model dependence), and none of the advantages of either (the flexibility and potential machine portability of software RAID or the the OS independence, write efficiency, cache options and so on of hardware RAID). I (and many others) recommend it be avoided.


MINOR NOTE: My thoughts on driver efficiency/stability are OS independent - I'd trust the software RAID options in any of Linux/BSD/Windows/OSX/other, similarly more than the drivers for a cheap fake raid configuration (such as that provided by your motherboard).
ALSO NOTE: potential bugs in drivers and other problems listed above aside, fake RAID will still protect you from some drive failures, but I would suggest using software RAID instead.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...