Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far
Date: Tue, 09 Feb 2010 20:07:41
Message-Id: 201002092029.36344.joost@antarean.org
In Reply to: Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far by Mark Knecht
1 On Tuesday 09 February 2010 19:25:00 Mark Knecht wrote:
2 > On Tue, Feb 9, 2010 at 9:38 AM, Stroller <stroller@××××××××××××××××××.uk>
3 > wrote: <SNIP>
4 >
5 > > IMO this is a fdisk "bug". A feature should be added so that it tries to
6 > > align optimally in most circumstances. RAID controllers should not be
7 > > trying to do anything clever to accommodate potential misalignment unless
8 > > it is really cheap to do so.
9 > >
10 > > Stroller.
11 >
12 > We think alike. I personally wouldn't call it a bug because drives
13 > with 4K physical sectors are very new, but adding a feature to align
14 > things better is dead on the right thing to do. It's silly to expect
15 > every Linux user installing binary distros to have to learn this stuff
16 > to get good performance.
17 >
18 > - Mark
19 >
20
21 I actually agree, although I think the 'best' solution (untill someone comes
22 up with an even better one, that is :) ) would be for the drive to actually be
23 able to inform the OS (via S.M.A.R.T.?) that it has 4KB sectors.
24 If then fdisk-programs and RAID-cards (ok, new firmware) then uses this to
25 come to sensible settings, that would then work.
26
27 If these RAID-cards then also pass on the correct settings for the raid-array
28 for optimal performance (stripe-size => sector-size?) using the same method,
29 then everyone would end up with better performance.
30
31 Now, if anyone has any idea on how to get this idea implemented by the
32 hardware vendors, then I'm quite certain the different tools can be modified
33 to take this information into account?
34
35 And Mark, it's not just people installing binary distros, I think it's
36 generally people who don't fully understand the way harddrives work on a
37 physical level. I consider myself lucky to have worked with older computers
38 where this information was actually necessary to even get the BIOS to
39 recognize the harddrive.
40
41 --
42 Joost