From: Tejun Heo <tj@kernel.org>
To: Herbert Poetzl <herbert@13thfloor.at>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
linux-ide@vger.kernel.org
Subject: Re: WDC WD20EARS and 4k sector size
Date: Tue, 25 Jan 2011 11:01:10 +0100 [thread overview]
Message-ID: <20110125100110.GM27510@htj.dyndns.org> (raw)
In-Reply-To: <20110125033259.GC24024@MAIL.13thfloor.at>
Hello,
On Tue, Jan 25, 2011 at 04:32:59AM +0100, Herbert Poetzl wrote:
> > Align your partitions on a 4K boundary.
>
> While this will ensure that the drive performance is better
> than without doing so (I'm not using a partition table on that
> drive anyways, but I get what you mean), this doesn't inform
> the kernel about proper I/O sizes and for sure doesn't prevent
> unnecessary read-change-write operations for the disc ...
Kernel doesn't really care. Well, the fs should align things to 4KiB
but all the modern ones already do so. The only thing necessary is
aligning the partition table. Whether the drive lies about physical
sector or not, most modern distros unconditionally align partitions to
1MiB. So, as long as you use a distro which was released in the past
six month, there's nothing to worry about.
Thanks.
--
tejun
next prev parent reply other threads:[~2011-01-25 10:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 3:04 WDC WD20EARS and 4k sector size Herbert Poetzl
2011-01-25 3:15 ` Martin K. Petersen
2011-01-25 3:32 ` Herbert Poetzl
2011-01-25 3:40 ` Greg Freemyer
2011-01-25 3:52 ` Martin K. Petersen
2011-01-25 4:23 ` Mark Lord
2011-01-25 8:26 ` Michael Tokarev
2011-01-25 10:01 ` Tejun Heo [this message]
2011-01-25 4:09 ` Jeff Garzik
2011-01-25 4:21 ` Mark Lord
2011-01-25 4:34 ` Herbert Poetzl
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=20110125100110.GM27510@htj.dyndns.org \
--to=tj@kernel.org \
--cc=herbert@13thfloor.at \
--cc=linux-ide@vger.kernel.org \
--cc=martin.petersen@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).