LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-21-2009, 09:26 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
What is faster raid 1 or raid 5?


What is faster raid 1 or raid 5?

Some people have told me 1 because it doesn't have to calculate parity.

And some people have told me 5 because it can write to multiple drives at once and writing the same data to 2 drives (raid 1) takes more time.

Which is it?

TIA

Last edited by abefroman; 11-21-2009 at 09:29 PM.
 
Old 11-21-2009, 10:13 PM   #2
fedoralinuxjunkie
Member
 
Registered: Jun 2008
Location: NC
Distribution: Slackware64 15.0
Posts: 154

Rep: Reputation: 21
Hey abefroman.

Read this article on Tom's Hardware, should answer your question

Raid 1 and 10 vs Raid 5
 
Old 11-21-2009, 10:29 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
People's speed of hard drives are different. I prefer latency. Other people look at the throughput or bandwidth. Basically latency rules performance while bandwidth follows behind.

RAID-1 (mirroring) will take less load than RAID-5 if assuming we are dealing with software RAID. This means RAID-1 will be a better choice at a latency perspective which means performance. If we care only for throughput, RAID-5 will be better. The write throughput of RAID-1 is not any different compared to a single hard drive. Probably RAID-1 could affect the write performance around 0.1%, so it is nothing to complain about when the setup can be on 24-7 and 365 days a year. Could select RAID-10 which provides a middle ground between latency and throughput.

If selecting a hardware RAID controller from 3ware or Areca, the issues are different since all the load is put on the controller. These controllers includes specialized hardware to handle parity in real-time or faster than real-time, so doing parity checking and creating takes almost an instant. Adding a storage controller does hurt the performance of the computer since it puts a load on the bus and consumes some system registers. A hardware port multiplier could be used instead like the following from Addonics.

http://www.addonics.com/products/hos...d4sr5hpmus.asp

Do not ever think any RAID levels are redundant or gives you security because they do not. They just gives you a chance to keep a computer on 24-7 and 365 days a year.
 
Old 11-21-2009, 10:35 PM   #4
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
For write output is there a big difference between raid 1 and raid 5?
 
Old 11-21-2009, 10:38 PM   #5
fedoralinuxjunkie
Member
 
Registered: Jun 2008
Location: NC
Distribution: Slackware64 15.0
Posts: 154

Rep: Reputation: 21
[QUOTE=Probably RAID-1 could affect the write performance around 0.1%, so it is nothing to complain about when the setup can be on 24-7 and 365 days a year. Could select RAID-10 which provides a middle ground between latency and throughput..[/QUOTE]

There you go
 
Old 11-21-2009, 11:45 PM   #6
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by fedoralinuxjunkie View Post
There you go
Yes, but how does Raid 5 affect the write performance?
 
Old 11-22-2009, 04:03 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by abefroman View Post
Yes, but how does Raid 5 affect the write performance?
You are thinking too much into it. You are comparing two different levels that are completely different. One is mirroring and the other is striping. Striping increases bandwidth while mirroring does not. Of course RAID-5 will have better write performance. Again bandwidth has nothing to do with total performance. It is the latency that affects performance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chosing a RAID for NAS: HW Raid, FRAID, SW Raid StefanAO Linux - Server 2 08-29-2009 11:43 PM
S.W RAID vs RAID accelerator (FastTrakR TX4310 ) @ RAID 1 David Zfira Linux - Newbie 6 07-29-2009 11:13 PM
LXer: Tutorial: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 08-14-2008 11:20 PM
LXer: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 02-26-2008 09:40 PM
LXer: Build a faster desktop with RAID LXer Syndicated Linux News 0 01-18-2008 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration