public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar  performance so far
Date: Mon, 8 Feb 2010 09:10:47 -0800	[thread overview]
Message-ID: <5bdc1c8b1002080910p37f78fdch99827fab37be32cb@mail.gmail.com> (raw)
In-Reply-To: <20100208020850.GA21754@math.princeton.edu>

On Sun, Feb 7, 2010 at 6:08 PM, Willie Wong <wwong@math.princeton.edu> wrote:
> On Sun, Feb 07, 2010 at 01:42:18PM -0800, Mark Knecht wrote:
>>    OK - it turns out if I start fdisk using the -u option it show me
>> sector numbers. Looking at the original partition put on just using
>> default values it had the starting sector was 63 - probably about the
>> worst value it could be. As a test I blew away that partition and
>> created a new one starting at 64 instead and the untar results are
>> vastly improved - down to roughly 20 seconds from 8-10 minutes. That's
>> roughly twice as fast as the old 120GB SATA2 drive I was using to test
>> the system out while I debugged this issue.
>
> That's good to hear.
>
>>    I'm still a little fuzzy about what happens to the extra sectors at
>> the end of a track. Are they used and I pay for a little bit of
>> overhead reading data off of them or are they ignored and I lose
>> capacity? I think it must be the former as my partition isn't all that
>> much less than 1TB.
>
> As far as I know, you shouldn't worry about it. The
> head/track/cylinder addressing is a relic of an older day. Almost all
> modern drives should be accessed via LBA. If interested, take a look
> at the wikipedia entry on Cylinder-Head-Sector and Logical Block
> Addressing.
>
> Basically, you are not losing anything.
>
> Cheers,
>
> W
> --
> Willie W. Wong                                     wwong@math.princeton.edu
> Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
>         et vice versa   ~~~  I. Newton
>
>

Hi,
   Yeah, a little more study and thinking confirms this. The sectors
are 4K. WD put them on there. The sectors are 4K.

   Just because there might be extra physical space at the end of a
track doesn't mean I can ever use it.

   The sectors are 4K and WD put them on there and they've taken ALL
that into account already. They are 4K physically with ECC but
accessible by CHS  and by LBA in 512B chunks. The trick for speed at
the OS/driver level is to make sure we are always grabbing 4K logical
blocks from a single 4K physical sector off the drive. If we do it's
fast. If we don't and start asking for a 4K block that isn't in a
single 4K physical block then it becomes very slow as the drive
hardware/firmware/processor has to do multiple reads and piece it
together for us which is slow. (VERY slow...) By using partitions
mapped to sector number values divisible by 8 we do this. (8 * 512B =
4K)

   The extra space at the end of a track/cylinder is 'lost' but it was
lost before we bought the drive because the sectors are 4K so there is
nothing 'lost' by the choices we make in fdisk. I must remember to use
fdisk -u to see the sector numbers when making the partitions and
remember to do some test writes to the partition to ensure it's right
and the speed is good before doing any real work.

   This has been helpful for me. I'm glad Valmor is getting better
results also.

   I wish I had checked the title before I sent the original email it
was supposed to be

1-Terabyte drives - 4K sector sizes? -> bad performance so far

Maybe sticking that here will help others when they Google for this later.

Cheers,
Mark



  reply	other threads:[~2010-02-08 18:03 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-07 16:27 [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far Mark Knecht
2010-02-07 17:30 ` Alexander
2010-02-07 18:19   ` Volker Armin Hemmann
2010-02-07 19:26     ` Mark Knecht
2010-02-07 18:38   ` Mark Knecht
2010-02-07 19:16     ` Volker Armin Hemmann
2010-02-07 19:39 ` Willie Wong
2010-02-07 20:31   ` Mark Knecht
2010-02-07 21:59     ` Kyle Bader
2010-02-07 21:42   ` Mark Knecht
2010-02-08  2:08     ` Willie Wong
2010-02-08 17:10       ` Mark Knecht [this message]
2010-02-08 18:52         ` Valmor de Almeida
2010-02-08 20:34           ` Paul Hartman
2010-02-09  0:27             ` Neil Bothwick
2010-02-09 12:46               ` Stroller
2010-02-09 13:34                 ` Neil Bothwick
2010-02-09 23:37                   ` Iain Buchanan
2010-02-10  6:31                     ` Volker Armin Hemmann
2010-02-10  7:11                       ` Iain Buchanan
2010-02-10  8:37                         ` Volker Armin Hemmann
2010-02-10  8:43                         ` Volker Armin Hemmann
2010-02-09 13:35                 ` Volker Armin Hemmann
2010-02-09 13:57                 ` J. Roeleveld
2010-02-09 15:11                   ` Stroller
2010-02-09 15:27                     ` J. Roeleveld
2010-02-09 17:38                       ` Stroller
2010-02-09 18:25                         ` Mark Knecht
2010-02-09 19:29                           ` J. Roeleveld
2010-02-09 15:43                     ` Neil Bothwick
2010-02-09 17:17                       ` Stroller
2010-02-09 20:30                         ` Neil Bothwick
2010-02-09 18:03                       ` Neil Walker
2010-02-09 19:37                         ` J. Roeleveld
2010-02-09 23:52                           ` Iain Buchanan
2010-02-10  1:16                             ` Stroller
2010-02-10  6:59                             ` Neil Walker
2010-02-10  7:31                               ` Iain Buchanan
2010-02-10  1:28                           ` Stroller
2010-02-10 11:14                             ` J. Roeleveld
2010-02-10 16:37                               ` Stroller
2010-02-10 17:26                                 ` J. Roeleveld
2010-02-10 20:48                                   ` Stroller
2010-02-10  0:11                         ` Peter Humphrey
2010-02-10  6:48                           ` Neil Walker
2010-02-09 17:33               ` Paul Hartman
2010-02-09  7:47             ` J. Roeleveld
2010-02-09 23:22               ` Iain Buchanan
2010-02-10  7:08                 ` Alan McKinnon
2010-02-10 10:56                   ` J. Roeleveld
2010-02-10 10:53                 ` J. Roeleveld
2010-02-10 11:03                   ` Volker Armin Hemmann
2010-02-10 11:17                     ` J. Roeleveld
2010-02-10 11:24                       ` Volker Armin Hemmann
2010-02-08  5:25     ` Valmor de Almeida
2010-02-08 19:57       ` Stroller
2010-02-09  0:05     ` Frank Steinmetzger
2010-02-09  0:37       ` Mark Knecht
2010-02-09  2:48         ` Frank Steinmetzger
2010-02-09 17:09           ` Frank Steinmetzger
2010-02-09 18:21             ` Mark Knecht
2010-02-09 21:13             ` Frank Steinmetzger
2010-02-09 22:17               ` J. Roeleveld
2010-02-09 22:54               ` Mark Knecht
2010-02-10  0:31                 ` Iain Buchanan
2010-02-10  1:27                   ` Mark Knecht
2010-02-10  7:06                     ` Iain Buchanan
2010-02-09 16:31         ` Mark Knecht
2010-02-12  9:06           ` Mick
2010-02-12 12:14             ` Mark Knecht
2010-02-09  0:47       ` Stroller
2010-02-09  2:20       ` Willie Wong
2010-02-15  0:48     ` Frank Steinmetzger
2010-02-15  1:17       ` Willie Wong
2010-02-15  3:17         ` Mark Knecht
2010-02-15 18:03         ` Frank Steinmetzger
2010-02-15 23:53           ` Alex Schuster
2010-02-16 17:35             ` Frank Steinmetzger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5bdc1c8b1002080910p37f78fdch99827fab37be32cb@mail.gmail.com \
    --to=markknecht@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox