LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-19-2011, 08:24 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Disk performance with RAID1


With RAID level 1 (mirroring), when doing write, it is clearly necessary to write to both drives to keep them in sync. However, with reading, that is not needed. Correct data can be read from just one drive (either one). However, shouldn't it be possible when doing read-ahead or reading large blocks (no particular size since there is no stripe size in RAID1, but let's say over 1MB), to concurrently read from both drives at the same time, half from one and the other half from the other? For hardware RAID, as long as the controller can sustain the aggregated rate, I don't see why it is not possible to effectively double the single drive performance. Yet most of the time while reading from a RAID1 mirror, only one drive is actually operating. Is this just a cheap controller doing that?
 
Old 07-20-2011, 05:37 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Cheap controllers are just faux or fake raids. They stink like software raid stinks since they are really just software based.

No, they do use two drives but how each product uses the drives may be odd to a wiki on raid. Don't trust any of the cheap raid cards for any standard.

I'd use the cheap cards for a mirror but for any serious work you really need a hardware raid card and they are not cheap.
 
Old 07-21-2011, 08:49 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by jefro View Post
Cheap controllers are just faux or fake raids. They stink like software raid stinks since they are really just software based.

No, they do use two drives but how each product uses the drives may be odd to a wiki on raid. Don't trust any of the cheap raid cards for any standard.

I'd use the cheap cards for a mirror but for any serious work you really need a hardware raid card and they are not cheap.
What type is the 3ware 9650SE ?
 
Old 07-21-2011, 02:58 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Based solely on the price, I'd guarantee it is a hardware based raid card. Looks like an LSI chip.

A hardware raid card would have features unique to that model that may allow such settings or have them by default. A hardware raid card is the top of the heap. If you want any sort of speed, they are built for it. That is why the cost. They also seem to be more reliable in terms if mtbf.

Last edited by jefro; 07-21-2011 at 03:05 PM.
 
Old 07-26-2011, 08:12 AM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
This card is delivering substantially less than what I believe it should, in theory, be able to deliver. With RAID 1 on 2 drives, it is barely faster than one drive by itself, for reading (I expect it to be nearly double for bulk reading cases), and just slightly slower for writing (expected). With RAID 0 on 2 drives or RAID 10 on 4 drives I do see a substantial speed boost for both reading and writing, on the order of 60% more for reading and 40% more for writing. I'd expect both to be on the order of 90% for large sequential I/O, but that isn't happening.

I don't know if this is just a low end RAID card (LSI does make higher end models at a higher price) with reduced capability, or if the issue is with the driver (for example, not passing enough I/O to the controller for it to make use of parallelism). The stride I'm using is 256K and I've tried I/O sizes ranging from 16K to 64M with speeds nearly level from 1M to 64M.

For RAID 1, if a read request is made, it should be able to pass that to one drive. Then if another read request is made before the first one finishes, it should be able to pass the 2nd one to the other drive. I do see some kind of load balancing happening where activity alternates between drives. But only a small fraction of time do both drives appear to be active, and the performance numbers seem to about match that.

The other issue I have with these drives is that there is no configuration option to use a single drive completely transparently. When doing single drive configurations, it still reserves some space at the start of the drive for whatever it stores there (configuration, RAID array states, etc). I may abandon using these controllers for that reason alone.

I cannot do any further tests as the last of the machines I set up with these has been shipped to its location.
 
Old 07-26-2011, 08:47 AM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Another issue with this controller is that in RAID 5, performance is significantly lower (4x slower) than what would be expected, when the data being written is a full stripe size. In that case, the read-modify-write cycling can be skipped for better performance. That is not happening. What I do not know is whether this is because the controller doesn't know how to avoid RMW, or if the kernel driver for it is not passing the write request in a large enough chunk for the controller to avoid RMW. My writes were as large as 64MB in a single write operation, tested with and without the O_DIRECT flag.

I'm hoping I will have a future scenario where I can test the Areca controllers.
 
  


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] How can I use hotspare Disk in RAID1 bipinkdas Linux - Hardware 4 07-06-2009 03:48 PM
RAID1 software - 1 disk DEAD cferron Linux - Software 1 05-12-2008 02:14 PM
RAID1 array down to one disk with bad blocks, clone to good disk with dd noerror? ewolf Linux - Server 2 05-10-2008 12:40 AM
raid1 disk status dindome Linux - Enterprise 2 02-24-2007 01:35 PM
How to boot from the 3rd disk while RAID1? Chowroc Linux - Software 1 11-07-2005 07:56 AM

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

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