All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Matthias Schniedermeyer <ms@citd.de>
Cc: xfs@oss.sgi.com
Subject: Re: What are the correct mkfs.xfs parameters for a lying WD-EARS HDD?
Date: Mon, 08 Mar 2010 16:45:23 -0600	[thread overview]
Message-ID: <4B957E03.9090000@sandeen.net> (raw)
In-Reply-To: <20100308221044.GA17830@citd.de>

Matthias Schniedermeyer wrote:
> Hi
> 
> 
> More than a month ago i bought 4 Western Digital WD15EARS (1.5 TB) which 
> are (AFAIK) the first general/commercial available 4k sector SATA-HDDs.
> 
> Unfortunatly the HDDs lie about the 4k physical sector size and the most 
> prominent drawback is a worse than abysmal delete performance.
> ("Normal" Read & Write-performance is OK)
> 
> So if i wanted to (re-)mkfs the filesystems what would the correct 
> parameters be?
> 
> Kernel/Userspace is pretty recent (Debian-SID):
> mkfs.xfs version 3.1.1, kernel v2.6.33, util-linux 2.16.0
> Not that that should matter when the HDDs lies.

Recent kernel+util-linux-ng++fdisk+parted+xfsprogs -should- do the right thing for you....
Oh, but this was maybe the drive that didn't output the right stuff when queried.

Make sure your partitions, if any, are on 4k boundaries.(*)  older fdisk at least
won't do this by default, not sure about parted.

once that is done, tell mkfs.xfs "-s size=4096" to set the 4k sector size
(again, all-upstream should do this magically for sane drives)

-Eric

(*)unless the drive has an offset to make 512-sector 63 line up on a nice
boundary... in which case I guess you could experiment with perf both
ways to be sure...

> 
> Bis denn
> 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2010-03-08 22:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-08 22:10 What are the correct mkfs.xfs parameters for a lying WD-EARS HDD? Matthias Schniedermeyer
2010-03-08 22:45 ` Eric Sandeen [this message]
2010-03-08 23:47   ` Matthias Schniedermeyer
2010-03-09 21:41     ` Matthias Schniedermeyer
2010-03-10  8:26       ` Gim Leong Chin
2010-03-08 23:55   ` Martin K. Petersen
2010-03-09  0:55     ` Eric Sandeen

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=4B957E03.9090000@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=ms@citd.de \
    --cc=xfs@oss.sgi.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.