From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs space used issue
Date: Sat, 3 Mar 2018 06:59:26 +0000 (UTC) [thread overview]
Message-ID: <pan$bee0f$57d3b021$cd11cf8a$d3c1d93d@cox.net> (raw)
In-Reply-To: CAFmraXhRtUh-HPV4vpeE3-0B=vCeK40b2HfsOk_boSFu+EjQhg@mail.gmail.com
vinayak hegde posted on Thu, 01 Mar 2018 14:56:46 +0530 as excerpted:
> This will happen over and over again until we have completely
> overwritten the original extent, at which point your space usage will go
> back down to ~302g.We split big extents with cow, so unless you've got
> lots of space to spare or are going to use nodatacow you should probably
> not pre-allocate virt images
Indeed. Preallocation with COW doesn't make the sense it does on an
overwrite-in-place filesystem. Either nocow it and take the penalties
that brings[1], or configure your app not to preallocate in the first
place[2].
---
[1] On btrfs, nocow implies no checksumming or transparent compression,
either. Also, the nocow attribute needs to be set on the empty file,
with the easiest way to do that being to set it on the parent directory
before file creation, so it's inherited by any newly created files/
subdirs within it.
[2] Many apps that preallocate by default have an option to turn
preallocation off.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2018-03-03 7:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 13:09 btrfs space used issue vinayak hegde
2018-02-27 13:54 ` Austin S. Hemmelgarn
2018-02-28 6:01 ` vinayak hegde
2018-02-28 15:22 ` Andrei Borzenkov
2018-03-01 9:26 ` vinayak hegde
2018-03-01 10:18 ` Andrei Borzenkov
2018-03-01 12:25 ` Austin S. Hemmelgarn
2018-03-03 6:59 ` Duncan [this message]
2018-03-05 15:28 ` Christoph Hellwig
2018-03-05 16:17 ` Austin S. Hemmelgarn
2018-02-28 19:09 ` Duncan
2018-02-28 19:24 ` Austin S. Hemmelgarn
2018-02-28 19:54 ` Duncan
2018-02-28 20:15 ` Austin S. Hemmelgarn
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='pan$bee0f$57d3b021$cd11cf8a$d3c1d93d@cox.net' \
--to=1i5t5.duncan@cox.net \
--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.