From: David Sterba <dsterba@suse.cz>
To: Chris Murphy <lists@colorremedies.com>
Cc: Neal Gompa <ngompa13@gmail.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>,
Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>
Subject: Re: Using async discard by default with SSDs?
Date: Wed, 27 Jul 2022 16:56:40 +0200 [thread overview]
Message-ID: <20220727145640.GS13489@suse.cz> (raw)
In-Reply-To: <68dc27f3-32a8-4a2a-bfcc-0cf26bca8fec@www.fastmail.com>
On Wed, Jul 27, 2022 at 10:50:01AM -0400, Chris Murphy wrote:
> On Tue, Jul 26, 2022, at 6:10 PM, Chris Murphy wrote:
> > On Tue, Jul 26, 2022, at 5:36 PM, David Sterba wrote:
> >> What is quickly here?
> >
> > Seconds, less than a minute, all the blocks pointed to by backup roots
> > are empty (zeros).
> >
> > The default timeout is set to 2 minutes and that's
> >> what I've seen when testing that on a fresh filesystem.
> >
> > Ok I'll retest with 5.19 series. The last time I tested time to drive
> > gc backup rootswas circa 5.8.
>
> With 5.19, backup roots remain available for a surprisingly long time,
> definitely more than 2 minutes. It's not an exhaustive test, just a
> dozen samples over a half hour, but I never once saw zeros returned.
> Two out of those dozen, I saw the block already overwritten with a
> leaf of a newer generation and a completely different owner (e.g. csum
> tree written at the block address for the backup tree root) - which
> would make that backup root useless.
>
> What is a likely target kernel version to make discard=async the
> default? The merge window for 5.20 closes August 14. Is 5.21 a
> practical target?
The changes for the next merge window are supposed to be done a week or
two before it opens, but as this is a simple change I think I can
squeeze it in.
next prev parent reply other threads:[~2022-07-27 15:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-21 18:43 Using async discard by default with SSDs? Neal Gompa
2022-07-21 19:21 ` Roman Mamedov
2022-07-25 19:08 ` David Sterba
2022-07-26 20:00 ` Chris Murphy
2022-07-26 21:36 ` David Sterba
2022-07-26 22:10 ` Chris Murphy
2022-07-27 14:50 ` Chris Murphy
2022-07-27 14:56 ` David Sterba [this message]
2022-07-27 15:14 ` Chris Murphy
2022-07-27 17:47 ` David Sterba
2022-07-28 12:27 ` Chris Murphy
2022-07-27 15:26 ` Neal Gompa
2022-08-05 15:14 ` David Sterba
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=20220727145640.GS13489@suse.cz \
--to=dsterba@suse.cz \
--cc=clm@fb.com \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=ngompa13@gmail.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