All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neal Gompa <ngompa13@gmail.com>
To: dsterba@suse.cz, Chris Murphy <lists@colorremedies.com>,
	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 08:26:25 -0700	[thread overview]
Message-ID: <CAEg-Je_jEt_ivC2o1CpUYdvDZHYgHpkuPEam9BPjt9OftVbkJg@mail.gmail.com> (raw)
In-Reply-To: <20220727145640.GS13489@suse.cz>

On Wed, Jul 27, 2022 at 8:01 AM David Sterba <dsterba@suse.cz> wrote:
>
> 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.

It would definitely be nice to see this for 5.20. :)


-- 
真実はいつも一つ!/ Always, there's only one truth!

  parent reply	other threads:[~2022-07-27 15:27 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
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 [this message]
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=CAEg-Je_jEt_ivC2o1CpUYdvDZHYgHpkuPEam9BPjt9OftVbkJg@mail.gmail.com \
    --to=ngompa13@gmail.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.cz \
    --cc=josef@toxicpanda.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.