public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Stroller <stroller@stellar.eclipse.co.uk>
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 19:57:46 +0000	[thread overview]
Message-ID: <AF363EF5-918B-4323-94A1-3CB4A5FF80F7@stellar.eclipse.co.uk> (raw)
In-Reply-To: <4B6FA05B.7000209@gmail.com>


On 8 Feb 2010, at 05:25, Valmor de Almeida wrote:

> Mark Knecht wrote:
>> On Sun, Feb 7, 2010 at 11:39 AM, Willie Wong <wwong@math.princeton.edu 
>> > wrote:
> [snip]
>>   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
>
> I too was wondering why a Toshiba HDD 1.8" MK2431GAH (4kB-sector), 240
> GB I've recently obtained was slow:
>
> -> time tar xfj portage-latest.tar.bz2
>
> real    16m5.500s
> user    0m28.535s
> sys     0m19.785s
>
> Following your post I recreated a single partition (reiserfs 3.6)
> starting at the 64th sector:
>
> Disk /dev/sdb: 240.1 GB, 240057409536 bytes
> 255 heads, 63 sectors/track, 29185 cylinders, total 468862128 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Disk identifier: 0xe7bf4b8e
>
>   Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1              64   468862127   234431032   83  Linux
>
> and the time was improved
>
> -> time tar xfj portage-latest.tar.bz2
>
> real    2m15.600s
> user    0m28.156s
> sys     0m18.933s

Thanks to both you & Mark for posting this information about these  
improved timings.

I have just checked, and I am getting 3.5 - 6 minutes (real) to untar  
portage. I had blamed performance of this array on the fact that the  
RAID controller is an older model PCI card I got cheap(ish) off eBay,  
but I see it is also aligned beginning at sector 63.

I'm not quite sure if this is cause of poor performance here, as the  
drives in this array are not quite as modern as yours - I'm guessing  
that at least a couple of the drives have been bought in the last 6  
months, but they are only 500GB drives. However I guess it would only  
require one drive in the array to have 4K sectors and it would cause  
this kind of slowdown. I will try checking their spec now.

This is the same server that caused me to post in relation to slow  
Samba transfers 3 weeks ago ("How to determine if a NIC is playing  
gigabit?"). I have still not yet tested thoroughly - there are always  
chores getting in the way! - but it seems like I was able to transfer  
the same files in about a third (or maybe even a quarter) the time at  
100mbit, between my laptop & desktop Macs.

I am not immediately able to alter the partition layout, as I have  
scads of data on this array. In order to test I think I will need to  
create a second array, aligned optimally, and copy the data across.

I had been recently thinking that 2TB drives are now 40% cheaper per  
gig than 500GB ones, so perhaps I will have to splash out on 3 of  
them. This seems rather a lot of money, but I could probably use the  
space. Hmmmn... actually 1TB are nearly as cheap as per gig -  
considering the eBaying of my current drives, those would make a lot  
of sense.

Stroller.



$ time tar xfj portage-latest.tar.bz2

real    6m3.128s
user    0m37.810s
sys     0m39.614s
$ echo p  | sudo  fdisk -u /dev/sdb

The number of cylinders for this disk is set to 182360.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
Disk /dev/sdb: 1500.0 GB, 1499968045056 bytes
255 heads, 63 sectors/track, 182360 cylinders, total 2929625088 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x27a827a7

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63  2929613399  1464806668+  83  Linux

Command (m for help): Command (m for help): Command (m for help):
got EOF thrice - exiting..
$



  reply	other threads:[~2010-02-08 20:16 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
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 [this message]
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=AF363EF5-918B-4323-94A1-3CB4A5FF80F7@stellar.eclipse.co.uk \
    --to=stroller@stellar.eclipse.co.uk \
    --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