LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-13-2010, 03:26 PM   #1
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
raid5 with ext4: values for parameters when formatting the raid


Hi,

recently I started experimenting with raid5. I raided 3 partitions into a raid5 (software) array. Chunk size is 128kB.
After that I formatted /dev/md0 with ext4. I chose the following parameters for that:
Code:
blocksize: 4096
stride:    32
stripe-width: 64 (2 * stride)
To test the write speed I issued the following command:
Code:
dd if=/dev/zero of=/mnt/raid5/zero-file bs=100M count=10
I get a writing speed of 40 MB/sec. When I issue the command on an unraided target I get write speed up to 65 MB/sec.
After reading this wikipedia article about raid5 I did not expect that the speed might drop under 'normal' rate. I know that there can be penalties if databases are involved or for a lot of random writes, especially if the write size is smaller then the chunk size. But I don't think that the command I issued qualifies for this scenario.
Before I continue experimenting with raid5 I would like some confirmation that I got the basic setup ok.

Q: Did I choose the parameters for formatting right? If my understanding is correct then the following equations should be fulfilled when formatting a raid5:
stride * blocksize = chunk-size
stripe-width = (n-1) * stride # n being the total number of active disks that comprise the array

PS:
All partitions of the raid5 reside on separate, identical disks. The unraided partition that I used as reference resides on one of the disks that contains a partition which is part of the array. So it is not a 'different manufacturer' issue.
 
Old 12-19-2010, 08:21 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
So, after some further reading it appears that the options for mke2kfs are ok. Apparently the reduced write-speed is normal with a raid5 array. So it is not my (weird) experimental setup. The reason for this is that before anything is written to disc there is some overhead to compute the parity.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
updating a text file (replacing the existing parameters with the new values) rastin_nz Programming 4 11-10-2010 02:10 AM
[SOLVED] Formatting hard drive with ext3/ext4 while getting full rwx permissions PasBern Linux - Newbie 10 12-30-2009 12:16 PM
Convert ext4 FS to ext3 without formatting HDD n03x3c Linux - General 3 12-04-2009 05:47 AM
Multi Layer RAID50 fail (Intel SRCS14L RAID5 + 3ware 9550SX-4LP RAID5)+Linux RAID 0 BaronVonChickenPants Linux - Server 4 09-27-2009 04:06 AM
Formatting drive to ext4 simonb1975uk Slackware 2 01-08-2009 11:10 AM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration