All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: Nikolay Borisov <nborisov@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: remove skinny extent verbose message
Date: Thu, 23 Jun 2022 16:19:54 +0200	[thread overview]
Message-ID: <20220623141954.GP20633@twin.jikos.cz> (raw)
In-Reply-To: <56e24cb5-c085-3b17-203e-56007008a8ae@gmx.com>

On Thu, Jun 23, 2022 at 04:22:27PM +0800, Qu Wenruo wrote:
> 
> 
> On 2022/6/23 16:08, Nikolay Borisov wrote:
> > Skinny extents have been a default mkfs feature since version 3.18 i
> > (introduced in btrfs-progs commit 6715de04d9a7 ("btrfs-progs: mkfs:
> > make skinny-metadata default") ). It really doesn't bring any value to
> > users to simply remove it.
> >
> > Signed-off-by: Nikolay Borisov <nborisov@suse.com>
> 
> Looks fine to me.
> 
> But this means we need to define the level of (in)compat flags we want
> to show in the dmesg.

Yes and we haven't done that so far so we should have some guidelines.
> 
> By default, we have the following lines:
> 
>   BTRFS info (device loop0): flagging fs with big metadata feature
>   BTRFS info (device loop0): using free space tree
>   BTRFS info (device loop0): has skinny extents
>   BTRFS info (device loop0): enabling ssd optimizations
>   BTRFS info (device loop0): checking UUID tree
> 
> For "big metadata" it's even less meaningful, and it doesn't even have
> sysfs entry for it.

There's an entry in the global features but 'big_metadata' does not
appear in the per-filesystem directory.

> For "free space tree" it may be helpful, but if one is really concerning
> about the cache version we're using, it's better to go sysfs other than
> checking the kernel dmesg.

The logged messages are a bit different as they could be stored and then
used for analysis. For new features it makes more sense to log them, I
think eg. the free space tree messages have been useful when debugging
the online conversion that took a few patches to get right.

> For "SSD", it's a good thing to output.

Agreed.

> For "UUID" tree, it's definitely not useful, even for developers.

Agreed.

> For skinny metadata it's the one you're cleaning.

Though I've sent patch to make it only debug I agree that this has
little value and don't object to removing it completely.

> So I guess you can clean up more unnecessary mount messages then?

The criteria I'd use for adding/removing the messages are vaguely like
that:

- does the user want to know a particular feature is in use? this is
  namely when we're introducing something and want to verify what's
  happening

- can the option have an impact on the filesystem behaviour?  eg. like
  ssd, but we tend to log almost all mount options already

- if there's a value for developer, the level should be debug, otherwise
  info

- remove messages if a feature is on by default for a long time and does
  not bring any other value, eg. the mixed_backref, big_metadata or
  skinny extents;
  the respective sysfs files may need to stay as they could be used for
  runtime detection even after a long time, eg. in some testsuite
  collecting testcases over time but likely not updating them, removal
  should be done on case-by-case basis

  parent reply	other threads:[~2022-06-23 14:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23  8:08 [PATCH] btrfs: remove skinny extent verbose message Nikolay Borisov
2022-06-23  8:22 ` Qu Wenruo
2022-06-23  8:30   ` Nikolay Borisov
2022-06-23 14:19   ` David Sterba [this message]
2022-06-23 22:46     ` Criteria for mount messages. (was "Re: [PATCH] btrfs: remove skinny extent verbose message") Qu Wenruo
2022-06-24  9:10       ` Forza
2022-06-24 10:52       ` Martin Steigerwald
2022-06-24 13:10         ` Forza
2022-06-23  9:30 ` [PATCH] btrfs: remove skinny extent verbose message Nikolay Borisov
2022-06-23  9:52 ` Qu Wenruo
2022-06-24 16:21 ` 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=20220623141954.GP20633@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=nborisov@suse.com \
    --cc=quwenruo.btrfs@gmx.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.