LinuxQuestions.org
Review your favorite Linux distribution.
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 10-30-2010, 06:27 AM   #1
eltonsky
LQ Newbie
 
Registered: Sep 2010
Posts: 11

Rep: Reputation: 0
Question Why my disks speed varies when they have same amount of data??


My machine has 4 SATA 2 West Digital 1TB disks. I made 2 partitions on each of them, 500GB for each partition. When I started using them I check their I/O using iozone. The first partition has 100MB/s for read, 70MB/s for write. And the second partition has 80MB/s for read, 55MB/s for write. All 4 disks has the same result.

As I use on, the I/O speed on each partition decrease, to different extend. For example, for the 4 first partitions, the write speed varies from 69MB/s to 56MB/s. And I have same amount of data on each of them, all used 11%.

My guess for this is the disk block allocation policy. This is caused because some disk starts writing from inner location while others writes on the outer edge, even though amount of data on each disk is the same.

Any expert idea for this ?
 
Old 10-30-2010, 09:53 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Well. "Same amount of data" does not equal to "same data" on the 4 disks. If these disk were all mirrors of each other, then the I/O would probably be identical. If as I understand from you, each disk is written to independently, then the difference is expected. Every write operation is evaluated by the filesystem & written to different areas of the disk.
 
Old 10-30-2010, 10:11 AM   #3
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Besides that is the factor that each disk writes in a different way (from inner to outer sectors in the platter or the other way around) and the fact the the data could well span multiple platters.
 
Old 10-30-2010, 10:28 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by eltonsky View Post
When I started using them I check their I/O using iozone. The first partition has 100MB/s for read, 70MB/s for write. And the second partition has 80MB/s for read, 55MB/s for write. All 4 disks has the same result.
The first sectors of the disk are on the outer tracks, where there are more bits per physical track, so more bits per second in transfer rate as well as more bits reachable within a given physical seek distance.

Quote:
As I use on, the I/O speed on each partition decrease, to different extend. For example, for the 4 first partitions, the write speed varies from 69MB/s to 56MB/s. And I have same amount of data on each of them, all used 11%.
Partitions get fragmented. Many documents and posts will tell you that fragmentation doesn't matter in Linux file systems. That isn't really true. Fragmentation doesn't matter as much in sane filesystems as it did in FAT. Fragmentation doesn't matter as much in the way files are used in modern systems as it did many years ago. But fragmentation will still produce measurable differences.

Quote:
My guess for this is the disk block allocation policy. This is caused because some disk starts writing from inner location while others writes on the outer edge, even though amount of data on each disk is the same.
Why would the policy be different?

It seems more likely that the sequence of creation, extension and deletion of files varied among your partitions. Even if the total fraction used ended up the same, the exact sequence of creation, extension and deletion requests that reached that current use level could result in arbitrary differences in the distribution of the used sectors.

Quote:
Originally Posted by eltonsky View Post
This is caused because some disk starts writing from inner location while others writes on the outer edge,
I think all disks give the lowest physical addresses to the outer edge and the highest physical addresses to the inner edge.

I think the file system policies will tend to use lower physical addresses before higher physical addresses, but that will just be a tendency, not a strict rule. Lots of factors may influence which sectors a filesystem decides to use next.

Last edited by johnsfine; 10-30-2010 at 10:34 AM.
 
  


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
Software to see the amount of data downloaded mohitdaksh Linux - Software 1 08-03-2010 07:19 PM
measure the amount of usb data mdb1526 Linux - Newbie 1 01-21-2010 10:50 AM
Tracking amount of sent/received data MartenH Linux - Newbie 3 04-01-2009 01:05 PM
Max amount of disks for raid 0? colinstu General 3 03-15-2007 03:25 PM
managing the amount of data that is logged paranoid times Linux - Security 3 02-09-2007 02:46 PM

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

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