[CentOS] raid resync speed? - laptop drive-

Wed May 26 15:53:29 UTC 2010
Robert Nichols <rnicholsNOSPAM at comcast.net>

On 05/26/2010 10:12 AM, Les Mikesell wrote:
> On 5/26/2010 9:52 AM, John R Pierce wrote:
>>
>>>> Is that one of those WD drives that falsely
>>>> reports its physical sector size as 512 bytes?
>>>>
>>>
>>>    From the Scorpio blue specs, if I divide the capacity by the number of sectors, I get 512...
>>>
>>
>>
>>
>> all these new 'advanced' drives look to the host like they have 512 byte
>> sectors.... its just that they pack 8 of them internally into a single
>> 4K sector.    if you don't ensure that your partitions start on a 4K (8
>> sector) boundary, then committed random writes are very slow as your
>> logical file system blocks will span multiple physical sectors
>
> How can they ever be fast if the OS is writing 512 byte sectors?  The
> drive is going to have to read the 4k sector, merge the update, wait for
> the disk to spin around and write it back.  The read speed seems a match
> for a desktop Seagate with the same capacity, but writes are about 10x
> slower, even if I dd to the raw disk which should bypass any partition
> alignment issues.  And unfortunately since I want to store backups on
> it, the write speed is what matters.

According to that page I referenced on ata.wiki.kernel.org, "Most modern
filesystems generate 4KiB aligned accesses from the partition it is
in."  If you get the partition alignment correct, it should "just work"
unless something else is getting in the way.  When I look at the counts
from "vmstat -d" I see that the sector count is indeed 8X the number of
I/O requests, but I have no way to see the alignment of those.

   https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.