LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2010, 01:06 PM   #1
DiegoMustache
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
Software raid 5 write performance


I wasn't sure where to post this question so administrators, feel free to move it.

I have a media server I set up running Ubuntu 10.4 Server, and I set up a software raid 5 using 5 Western Digital Caviar Green 2TB 7200RPM 64MB drives. Individually they benchmark (using the Ubuntu's mdadm GUI (pali?somthing...) at about 100-120mb/s read write.

I set the raid 5 up with a stripe size of 256kb, and then I waited the 20 hours it took to synchronize. My read speeds in raid are up to 480mb/s, but my write max is just under 60mb/s. I knew my write performance would be quite a bit lower than my read, but I was also expecting at least single drive performance. I have seen other people online with better results in software, but have been unable to achieve the results they have gotten.

My bonnie++ results are more or less identical (I used mkfs.ext4 and set the stride and stripe-width).

The PC has 2048mb of RAM and a 2.93Ghz Dual Core Pentium (Core 2 Architecture), so I doubt think that's the bottle neck. These drives are on the P55 (P45*) South Bridge SATA controller.

Anyone know what I am doing wrong or have any suggestions?

Thanks.

EDIT: I meant P45 chipset.

Last edited by DiegoMustache; 11-19-2010 at 10:55 AM.
 
Old 11-16-2010, 02:05 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Seems to me that you are within 10% of the average for some of the tests that I've read.

http://www.linux.com/archive/articles/140734
 
Old 11-16-2010, 04:53 PM   #3
DiegoMustache
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I've seen that web page before. It is reporting about 130mb/s block write on a 6 drive array. My drives are no slower than those. I have only 5 instead on 6, but the difference is too large. I am using the same chunk size as in the tests as well. There's gotta be something I can tweak...

Last edited by DiegoMustache; 11-16-2010 at 04:54 PM.
 
Old 11-16-2010, 05:07 PM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
I don't know if this will help or not. But the November 2009 Linux Pro Magazine was devoted to RAID optimization and performance. If you happen to have a copy or perhaps they might have it in their archives.

Regards,

Fordeck
 
Old 11-16-2010, 05:08 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I believe that your expectations may be too high. RAID 5 is a fault tolerant configuration. You should not expect high data write throughput in a fault tolerant environment.

If you want speed then use RAID 0. It is not fault tolerant. It is fast.

Some people use RAID 10 to try to improve the speed of RAID 1. RAID 10 may be faster in some environments than RAID 5 because RAID 10 does not compute a parity block for data recovery. Yet RAID 10 provides some fault tolerance. If data write performance is important then maybe this is for you.

I've seen some people use RAID 50. I'm not a fan of it.

I put some value on lab testing so web sites with performance data can be somewhat useful. Nevertheless your software and hardware will cause your results to deviate from some other person's tests. It's like the mileage rating in new cars. You may or you may not be able to achieve the same results as another person in another environment.

Last edited by stress_junkie; 11-16-2010 at 05:12 PM.
 
Old 11-17-2010, 12:24 PM   #6
DiegoMustache
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I think I figured it out guys. I was using Palimpsest (in Ubuntu called Disk Utility). It seems to be the problem. Palimpsest partitions the drives and creates an array out of the partitions. mdadm out of the command line by default does not. Testing on a 3x1TB array using Palimpsest i got write of 35mb/s. Using mdadm I got 90mb/s. After it's done recovering I'll get back to you on the new write speeds of my 5x2TB.

Thanks for the suggestions.
 
Old 11-19-2010, 10:54 AM   #7
DiegoMustache
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
It made a huge difference. Now my read is 393.4MB/s max, 184.3MB/s avg, and 102.7MB/s min, and me write is 262.4MB/s max, 139.9MB/s avg, and 80.3MB/s min.

That is on 5 2TB WD Caviar Green 64MB drives on the P45 southbridge sata controller.
 
Old 11-24-2010, 05:54 PM   #8
cadet_concept
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Rep: Reputation: 2
Extra info: This chart is somewhat old, but gives a comparison of sequential and random reads & writes among the various RAID flavors.

http://www.pcguide.com/ref/hdd/perf/...evels/comp.htm
 
  


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
[SOLVED] RAID 5 with even number of drives gives bad write performance. Why? dbrazeau Linux - Software 2 10-28-2010 11:37 AM
software raid performance fakie_flip Linux - Hardware 1 10-11-2007 04:42 PM
SCSI/software RAID performance inadequate stefan_nicolau Linux - Hardware 0 07-19-2006 09:48 PM
Software RAID5 - poor write performance & freezing Nitrowolf Linux - Hardware 3 09-25-2005 09:49 PM
[Fedora Core 3]Poor write performance with raid controller TomG22 Linux - Hardware 1 09-22-2005 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:05 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