All of lore.kernel.org
 help / color / mirror / Atom feed
From: Remi Gauvin <remi@georgianit.com>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Does btrfs filesystem defragment -r also include the trees?
Date: Thu, 20 Apr 2023 08:37:07 -0400	[thread overview]
Message-ID: <b7c067eb-e828-35f7-4b26-499173fd07d9@georgianit.com> (raw)

I have recently experienced that btrfs defragment (by itself, without
-r) of a subvolume can dramatically improve performance when accessing
very large directories.  I would go so far as to call it critical
maintenance when working with gtk3 based file managers.

What I am not clear on, however, does adding the -r *also* defragment
the subvolume extent tree, or do the two commands needs to be run
separately to get the full effect?


             reply	other threads:[~2023-04-20 12:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20 12:37 Remi Gauvin [this message]
2023-04-20 22:42 ` Does btrfs filesystem defragment -r also include the trees? David Sterba
2023-04-21  7:57   ` Qu Wenruo
2023-04-21 12:21     ` Remi Gauvin
2023-04-21 17:41       ` waxhead
2023-04-21 21:00         ` Forza
2023-04-21 21:27         ` Remi Gauvin
2023-04-21 21:40         ` joshua
2023-04-21 22:55           ` Qu Wenruo
2023-04-21 23:25             ` joshua
2023-04-22  0:42               ` Qu Wenruo
2023-04-23  9:34                 ` waxhead
2023-04-23 10:50                   ` Qu Wenruo

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=b7c067eb-e828-35f7-4b26-499173fd07d9@georgianit.com \
    --to=remi@georgianit.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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.