Is Linux Ready for 4096 Byte Sector Hard Drives?
On paper, Linux doesn't seem susceptible to any of the performance pitfalls associated with transitioning from 512-byte to 4096-byte sector hard drives, but is that really the case? According to Timothy Miller, founder of the Open Graphics Project, Linux is just as vulnerable to the potential performance impact as Windows XP.
Miller came to his conclusion after picking up a pair of new Western Digital Caviar Green drives and putting the paper assumption to the test.
"The problem most likely to hit you with one of these drives is very slow write performance," Miller wrote on his blog. "This is caused by improper logical-to-physical sector alignment. OS's like Linux use 4K blocks (or multiples of 4K) to store data, which matches well with the physical sector. However, nothing restricts you from creating a partition that starts on an odd-numbered 512-byte logical sector. This misalignment causes a performance hit since the drive has to read and rewrite the 4K sectors with whatever 512-byte slices changed."
Miller's findings fly in the face of WD's claims, who says that both Mac OS X and Linux would be "unaffected." During Miller's testing, he found that 1000 random aligned 4K writes consistently took between 7 and 8 seconds, while the same number of unaligned 4K writes took between 22 and 24 seconds, or three times longer.
"We've known about this issue for LONG time, and now it's here, and we haven't fully prepared," Miller added.
Get the full scoop here.
![]()
Belboz99
February 15, 2010 at 10:24pm
Okay, so IF you're stupid enough to intentionally use odd starting sector then you get the same performance as Windows will always have with these drives, woopdie do!
Let's make a mountian out of a molehill and spread fear uncertainty and doubt throughout the land, calling it a study. *rolls eyes*
http://danophoto.net
![]()
arch-chancellor
February 15, 2010 at 1:23pm
The so-called "green" drives spin at about 5400rpm. Some can speed up to 7200rpm, but that takes time to happen. Could this be affecting the test results? Try using a Velociraptor. Or, just an ordinary 7200rpm.
That's just the hard drive issues alone. How about the CPU, ram, or even the version of Linux.
I like Linux, but I can't play Rosenkreuz Stilette on it.
![]()
compro01
February 16, 2010 at 7:20am
The problem is known and the issue is the annoying backwards compatability hack the manufactuers use so the drives will work with windows XP., which has no idea how to handle sectors larger than 512 bytes.
Basically, the drive uses 4096 bye sectors, but presents itself to the OS as having 512 byte sectors and shuffles between them in the firmware.
Linux trusts the hardware and treats the drive as having 512-byte sectors, which results in this misaligned sectors issue.
![]()
Danielt876
February 15, 2010 at 5:12pm
I think the purpose of the tests were to show the difference in time, not to benchmark anything. so the hard drive, CPU, RAM, and the like would not make a difference.















