From: Roman Mamedov <rm@romanrm.net>
To: Nikolay Borisov <nborisov@suse.com>
Cc: Josef Bacik <josef@toxicpanda.com>,
Chris Murphy <lists@colorremedies.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: fstrim is takes a long time on Btrfs and NVMe
Date: Mon, 23 Dec 2019 00:15:12 +0500 [thread overview]
Message-ID: <20191223001512.6477bd8f@natsu> (raw)
In-Reply-To: <a6488349-301f-1071-0d96-4970ca50c3cd@suse.com>
On Sun, 22 Dec 2019 20:06:57 +0200
Nikolay Borisov <nborisov@suse.com> wrote:
> Well, if we rework how fitrim is implemented - e.g. make discards async
> and have some sort of locking to exclude queued extents being allocated
> we can alleviate the problem somewhat.
Please keep fstrim synchronous, in many cases TRIM is expected to be completed
as it returns, for the next step of making a snapshot of a thin LV for backup,
to shutdown a VM for migration, and so on.
I don't think many really care about how long fstrim takes, it's not a typical
interactive end-user task. By all means it's great to speed it up if possible,
but not via faking that with unexpected tricks of continuing to TRIM in the
background. Sure, SSDs already do that under the hood, but keep in mind that
SSDs are not the only application of TRIM (the other being as mentioned, thin
LVs and sparsely allocated disk images).
--
With respect,
Roman
next prev parent reply other threads:[~2019-12-22 19:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-21 6:24 fstrim is takes a long time on Btrfs and NVMe Chris Murphy
2019-12-21 8:38 ` Andrea Gelmini
2019-12-21 9:27 ` Nikolay Borisov
2019-12-22 3:43 ` Chris Murphy
2019-12-22 3:59 ` Chris Murphy
2019-12-22 10:40 ` Nikolay Borisov
2019-12-22 17:43 ` Josef Bacik
2019-12-22 17:49 ` Nikolay Borisov
2019-12-22 18:00 ` Josef Bacik
2019-12-22 18:06 ` Nikolay Borisov
2019-12-22 19:08 ` Chris Murphy
2019-12-22 19:15 ` Roman Mamedov [this message]
2019-12-22 22:11 ` Chris Murphy
2019-12-22 22:29 ` Nikolay Borisov
2019-12-22 23:14 ` Chris Murphy
2019-12-22 23:23 ` Chris Murphy
2019-12-22 18:50 ` Chris Murphy
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=20191223001512.6477bd8f@natsu \
--to=rm@romanrm.net \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=nborisov@suse.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