From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: "Holger Hoffstätte" <holger@applied-asynchrony.com>
Cc: Kanchan Joshi <joshi.k@samsung.com>, linux-xfs@vger.kernel.org
Subject: Re: [PATCH] fs/xfs: Add support for passing write life-time hint with log
Date: Mon, 3 Dec 2018 08:34:57 -0800 [thread overview]
Message-ID: <20181203163457.GW8125@magnolia> (raw)
In-Reply-To: <f3d25c5b-6a96-397c-d947-370867401a83@applied-asynchrony.com>
On Mon, Dec 03, 2018 at 04:48:12PM +0100, Holger Hoffstätte wrote:
> On 12/3/18 2:12 PM, Kanchan Joshi wrote:
> > Log gets updated in a circular fashion, and that makes life-time
> > of log-data different from other types of meta/user-data.
> > By passing a write life-time hint with log, GC efficiency of multi-stream SSD
> > gets improved, leading to endurance/performance benefits.
> > It is described in greater detail (along with results) in this "FAST 2018"
> > paper -
> > https://www.usenix.org/conference/fast18/presentation/rho
> > This patch introduces new mount option "logwritehint" to pass write hint
> > with XFS log.
>
> Is there any downside to passing the hints unconditionally?
Why wouldn't we always pass LIFE_EXTREME? Do people have setups where,
say, hint <= LIFE_MEDIUM gets a disk but anything longer than that gets
a big slow stone tablet, which is not where we'd want the metadata log?
For that matter, should we be passing write hints for other fs metadata?
Fixed AG headers never move, should they be LIFE_whateverthelogis ? How
about space and file metadata, which aren't fixed to certain locations?
> Introducing a new mount option which depends on the internals of
> an SSD seems .. unlikely to gain many friends.
> Otherwise a great idea. :)
Likewise, I'm not wild about adding mount options or passing raw
integers via mount(8) command line:
mount /dev/fd0 /mnt -o logwritehint=3 # ???
--D
> -h
next prev parent reply other threads:[~2018-12-03 16:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20181203131558epcas2p14b6b38cb67d4915b1ba782e11ce7ffe6@epcas2p1.samsung.com>
2018-12-03 13:12 ` [PATCH] fs/xfs: Add support for passing write life-time hint with log Kanchan Joshi
2018-12-03 15:48 ` Holger Hoffstätte
2018-12-03 16:34 ` Darrick J. Wong [this message]
2018-12-03 20:09 ` Dave Chinner
2018-12-04 12:11 ` Kanchan Joshi
2018-12-04 22:09 ` Dave Chinner
2018-12-10 15:15 ` Kanchan Joshi
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=20181203163457.GW8125@magnolia \
--to=darrick.wong@oracle.com \
--cc=holger@applied-asynchrony.com \
--cc=joshi.k@samsung.com \
--cc=linux-xfs@vger.kernel.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