From: David Brown <david.brown@hesbynett.no>
To: Mikael Abrahamsson <swmike@swm.pp.se>
Cc: Kyle Brantley <kyle@averageurl.com>, linux-raid@vger.kernel.org
Subject: Re: Issue with md and 4K sector alignment
Date: Mon, 20 Aug 2012 09:28:43 +0200 [thread overview]
Message-ID: <5031E72B.8060002@hesbynett.no> (raw)
In-Reply-To: <alpine.DEB.2.00.1208200735020.27104@uplift.swm.pp.se>
On 20/08/2012 07:36, Mikael Abrahamsson wrote:
> On Sun, 19 Aug 2012, Kyle Brantley wrote:
>
>> I understand that I may need to work on the higher layers (LVM,
>> partitioning -- and if there is any insight here, it would be
>> appreciated!) with respect to the alignment, but my concern is the
>> resync times. I've tried building the array off of both the raw disks
>> and 4K aligned partitions placed on the disks -- the resync
>> performance is identical, and poor.
>
> If you create the md directly on the device instead of doing partitions,
> you don't have to worry. LVM and md are already 4k aligned.
>
> If you create partitions, then you have to make sure they're 4k aligned.
>
It would be nice if LVM and md moved towards a bigger native alignment.
4K is good enough for hard disks, but for SSD's you want to align
partitions on erase block boundaries. The standard used by modern fdisk
and gparted (and tools from the-OS-that-must-not-be-named) is 1 MB - a
bigger alignment than is necessary for current SSDs, but one that will
be good enough for the foreseeable future.
next prev parent reply other threads:[~2012-08-20 7:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-19 21:06 Issue with md and 4K sector alignment Kyle Brantley
2012-08-20 5:36 ` Mikael Abrahamsson
2012-08-20 7:28 ` David Brown [this message]
2012-09-06 20:34 ` H. Peter Anvin
2012-09-07 6:19 ` Mikael Abrahamsson
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=5031E72B.8060002@hesbynett.no \
--to=david.brown@hesbynett.no \
--cc=kyle@averageurl.com \
--cc=linux-raid@vger.kernel.org \
--cc=swmike@swm.pp.se \
/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