From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Unable to allocate for space usage in particular btrfs volume
Date: Thu, 5 Nov 2015 04:18:11 +0000 (UTC) [thread overview]
Message-ID: <pan$b856e$b1f161a7$4a31aba1$83a27ad@cox.net> (raw)
In-Reply-To: 563A7E45.1050806@startmail.com
OmegaPhil posted on Wed, 04 Nov 2015 21:53:09 +0000 as excerpted:
> The volume doesn't change hugely over time, so it really ought not to
> have broken so quickly - a quick rundown of the storage usage:
>
> 36% general (small files, some smallish videos)
> 24% music 23% pr0n 17% VMs
>
> But in terms of 'large files changing', it could be the VM disks perhaps
> -
> I'll move them out, balance, and then back in again, hopefully that'd be
> a meaningful test.
VM image files (and large database files, for the same reason) are a bit
of a problem on btrfs, and indeed, any COW-based filesystem, since the
random rewrite pattern matching that use-case is pretty much the absolute
worst-case match for a COW-based filesystem there is.
And that would be the worst-case in terms of the unsplit extents issue
Hugo was talking about as well. So they may well be the problem, indeed.
Since you're not doing snapshotting (which conflicts with this option,
with an imperfect workaround), setting nocow on those files may well
eliminate the problem, but be aware if you aren't already that (1) nocow
does turn off checksumming as well, in ordered to avoid a race that could
easily lead to data corruption, and (2) you can't just activate nocow on
the existing file and expect it to work, the procedure is a bit more
complicated than that, since nocow is only guaranteed to work if it's set
at file creation. Detailed instructions for #2 skipped as they've been
posted many times, but if you are interested and haven't seen them, ask.
--
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:[~2015-11-05 4:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 21:10 Unable to allocate for space usage in particular btrfs volume OmegaPhil
2015-11-04 21:30 ` Hugo Mills
2015-11-04 21:53 ` OmegaPhil
2015-11-05 4:18 ` Duncan [this message]
2015-11-05 10:44 ` OmegaPhil
2015-11-05 11:49 ` Hugo Mills
2015-11-06 20:15 ` Calvin Walton
2015-11-06 20:35 ` 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$b856e$b1f161a7$4a31aba1$83a27ad@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 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).