xfs
[Top] [All Lists]

Re: What is a recommended XFS sector size for hybrid (512e) advanced for

To: Hillel Lubman <shtetldik@xxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: What is a recommended XFS sector size for hybrid (512e) advanced format hard drives?
From: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>
Date: Sun, 04 Jan 2015 21:52:51 -0600
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1806495.BCZcrVVEOf@shtub-cm>
References: <1806495.BCZcrVVEOf@shtub-cm>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0
On 01/04/2015 06:56 PM, Hillel Lubman wrote:
...
> Looking around I saw some references that it's preferable to use sector
> size (sectsz) of 4 KB when creating XFS partitions on hybrid (512e)
> advanced format hard drives and also some mentions of making that a
> default in mkfs.xfs. However I noticed that my current mkfs.xfs (3.2.1)
> used with current Debian testing (Linux 3.16.0) still uses 512 B sectors
> by default.
...
> Can you please clarify what after all is the recommended sector size for
> such drives and why isn't it a default in mkfs.xfs (since supposedly
> defaults are generally recommended optimal settings unless you have some
> special use case).
...

XFS sectsz is unimportant with these drives.  What matters is that any
partitions you create start and end on 4KB boundaries.  This will
prevent adjacent hardware sector RMW internal to the drive.  XFS writes
in 4KB filesystem blocks on Linux.  As long as the fsblocks are aligned
to the 4KB hardware sectors there's nothing more you can do to avoid
performance penalties with these drives.

Stan

<Prev in Thread] Current Thread [Next in Thread>