From: Christoph Hellwig <hch@infradead.org>
To: tytso@mit.edu
Cc: Andreas Dilger <adilger@dilger.ca>,
Wang Shilong <wangshilong1991@gmail.com>,
Ext4 Developers List <linux-ext4@vger.kernel.org>,
Wang Shilong <wshilong@ddn.com>, Shuichi Ihara <sihara@ddn.com>
Subject: Re: [PATCH v3 1/2] ext4: introduce EXT4_BG_WAS_TRIMMED to optimize trim
Date: Fri, 14 Aug 2020 09:06:35 +0100 [thread overview]
Message-ID: <20200814080635.GA14827@infradead.org> (raw)
In-Reply-To: <20200810132457.GA14208@mit.edu>
On Mon, Aug 10, 2020 at 09:24:57AM -0400, tytso@mit.edu wrote:
> Part of the problem here is that discard is being used for different
> things for different use cases and devices with different discard
> speeds. Right now, one of the primary uses of -o discard is for
> people who have fast discard implementation(s and/or people who really
> want to make sure every freed block is immediately discard --- perhaps
> to meet security / privacy requirements (such as HIPPA compliance,
> etc.). I don't want to break that.
Note that discard does not provide any security whatsover. For one
none of the underlying primitives actually gurantee any action, the
device is free to always ignore parts or all of a discard request.
And even if it didn't that doesn't mean that data couldn't easily
recovered from the media.
>
> We now have a requirement of people who have very slow discards --- I
> think at one point people mentioned something about for devices using
> HDD, probably in some kind of dm-thin use case? One solution that we
> can use for those is simply use fstrim -m 8M or some such. But it
> appears that part of the problem is people do want more precision than
> that?
Device managed SMR drivers usually support TRIM. But it actually
should be a decently fast operation usually, as those drives have a
remapping layer just like a FTL.
prev parent reply other threads:[~2020-08-14 8:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 13:14 [PATCH v3 1/2] ext4: introduce EXT4_BG_WAS_TRIMMED to optimize trim Wang Shilong
2020-06-22 13:14 ` [PATCH 2/2] ext4: avoid trimming block group if only few blocks freed Wang Shilong
2020-06-22 14:16 ` [PATCH v2 " Wang Shilong
2020-06-22 17:20 ` Andreas Dilger
2020-06-22 17:18 ` [PATCH v3 1/2] ext4: introduce EXT4_BG_WAS_TRIMMED to optimize trim Andreas Dilger
2020-08-06 4:47 ` tytso
2020-08-08 1:29 ` Wang Shilong
2020-08-08 15:18 ` tytso
2020-08-09 4:33 ` Andreas Dilger
2020-08-10 13:24 ` tytso
2020-08-12 23:14 ` Andreas Dilger
2020-08-14 8:06 ` Christoph Hellwig [this message]
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=20200814080635.GA14827@infradead.org \
--to=hch@infradead.org \
--cc=adilger@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=sihara@ddn.com \
--cc=tytso@mit.edu \
--cc=wangshilong1991@gmail.com \
--cc=wshilong@ddn.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).