Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > why raid10 is performing slower

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago   #1 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
why raid10 is performing slower

raid10 is faster. but in my case its slower.
please help me, what I am doing wrong.

/dev/md0 is raid1 consist upon sda7, and sda8.
/dev/md1 is raid1 consist upon sda9, and sda10.

/dev/md2 is raid0 consist upon md0, and md1.


# mdadm --create /dev/md2 --chunk=64 --level=0 --raid-devices=2 /dev/md[01]

# cat /proc/mdstat
Personalities : [raid1] [raid0]
md2 : active raid0 md1[1] md0[0]
626176 blocks 64k chunks

md1 : active raid1 sda10[1] sda9[0]
313152 blocks [2/2] [UU]

md0 : active raid1 sda8[1] sda7[0]
313152 blocks [2/2] [UU]

unused devices: <none>

performed the following test that proves that RAID10 is slower.

md2 is raid10
# hdparm -t /dev/md2

/dev/md2:
Timing buffered disk reads: 86 MB in 3.07 seconds = 27.97 MB/sec

md0 and md1 are raid1
# hdparm -t /dev/md0

/dev/md0:
Timing buffered disk reads: 180 MB in 3.00 seconds = 59.95 MB/sec

please help/suggest.
Regards
needee is offline  


Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,759
Why don't you create raid device using --level=10 and pass in the 4 disks rather than manually create 2 raid 1's, then raid 0 them? I'm not sure if it matters or not, but its definitely something to try.
coopstah13 is offline   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247

>Why don't you create raid device using --level=10 and pass in the 4 disks rather than manually create 2 raid 1's, then raid 0 them


Two reasons

1, actually I followed the following tutorial
The Linux Juggernaut: How to implement RAID10?

2, and as per the definiton of RAID10
"RAID-10 can be implemented as a stripe of RAID-1 pairs. For example, given 6 devices, you may configure them as three RAID-1s A, B and C, and then configure a RAID-0 of ABC."
source: Linux RAID best practices - Strugglers

thats why I think, using --level=10 and passing the 4 disk is not good/safe/reliable... but I know I am not an expert.

So, I will try --level=10.
does --level=10 gives redundancy/fault-tolerance ?

Thanks,
Regards
needee
needee is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 99
Quote:
Originally Posted by needee View Post
/dev/md0 is raid1 consist upon sda7, and sda8.
/dev/md1 is raid1 consist upon sda9, and sda10.
Your raid 10 is built by 4 partitions of the SAME disk.
This has only educational value.

In practice, this is more than useless.
You wont gain any data protection in case of disk failure
and OF COURSE this is slower.

That one poor disk has to write each request 4 times..
Well, to be more precise:
A write request by an application is first split by the raid0.
Then each of the raid1s has to write its part twice.


Other than that, coopstah13 is right.
Don't build the raid1s and the raid0 yourself, but rely on mdadm to get that sorted for you via raid10.
Use 4 individual drives, and a halfway decent CPU, then see your IO performance fly
Irithori is offline   Reply With Quote
Old 4 Weeks Ago   #5 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,759
Good catch on the partitions all on one disk, I didn't even see it. That will of course be significantly slower!
coopstah13 is offline   Reply With Quote
Old 4 Weeks Ago   #6 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
coopstah13 and Irithori, thanks for your nice help/support.

I used --level=10, and its working superb.

by the way, then why these tutorial exists
The Linux Juggernaut: How to implement RAID10?
needee is offline   Reply With Quote
Old 4 Weeks Ago   #7 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 99
Because not everything on the internet is the absolute truth.
Shocking revelation, I know
Irithori is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:55 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2