linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonah Sabean <me@jse.io>
To: linux-btrfs@vger.kernel.org
Subject: Autodefrag with nocow Attribute
Date: Fri, 2 Apr 2021 19:29:45 -0300	[thread overview]
Message-ID: <CAFMvigfJMYJVm0jTM9NTosF=FA6B4WsJ5VwJrGtuL7RGqKBycA@mail.gmail.com> (raw)

My understanding is btrfs will perform poorly with use cases such as
large databases that have a large amount of random reads/writes. As
such, the nocow attribute is usually suggested to allow overwriting to
help reduce fragmentation that would otherwise occur (bearing in mind
the downsides of using the nowcow attribute).

The autodefrag mount option however, helps mitigate this problem
somewhat with smaller databases that may have lower traffic and are
smaller in size, but can be a problem for large files. I assume
because it results in some sort of write amplification?

So my main question is in regards to a filesystem where you may want
to have autodefrag enabled, but also plan to use a large database as
well that may warrant using nocow for the reasons above. Is it okay to
set the nocow attribute while also having autodefrag turned on, or
will autodefrag still be an issue? If so, is it possible to disable
autodefrag on a particular subvolume or to set an attribute to disable
(or enable?) it, or if not, is this planned?  Am I misunderstanding
something here?

Thanks!
-Jonah

                 reply	other threads:[~2021-04-02 22:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAFMvigfJMYJVm0jTM9NTosF=FA6B4WsJ5VwJrGtuL7RGqKBycA@mail.gmail.com' \
    --to=me@jse.io \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).