From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: linux-btrfs@vger.kernel.org
Subject: Re: efficiency of btrfs cow
Date: Sun, 06 Mar 2011 11:17:13 -0500 [thread overview]
Message-ID: <4D73B389.1010803@interlinx.bc.ca> (raw)
In-Reply-To: <1299427596.15017.8.camel@ayu>
[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]
On 11-03-06 11:06 AM, Calvin Walton wrote:
>
> There actually is such a periodic jump in overhead,
Ahh. So my instincts were correct.
> caused by the way
> which btrfs dynamically allocates space for metadata as needed by the
> creation of new files, which it does whenever the free metadata space
> ratio reaches a threshold (it's probably more complicated than that, but
> close enough for now).
Sounds fair enough.
> To see exactly what's going on, you should use the "btrfs filesystem df"
> command to see how space is being allocated for data and metadata
> separately:
>
> ayu ~ # btrfs fi df /
> Data: total=266.01GB, used=249.35GB
> System, DUP: total=8.00MB, used=36.00KB
> Metadata, DUP: total=3.62GB, used=1.93GB
> ayu ~ # df -h /
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda4 402G 254G 145G 64% /
>
> If you use the btrfs tool's df command to account for space in your
> testing, you should get much more accurate results.
Indeed! Unfortunately that tool seems to be completely silent on my system:
# btrfs filesystem df /mnt/btrfs-test/
# btrfs filesystem df /mnt/btrfs-test
Where /mnt/btrfs-test is where I have the device that I created the
btrfs filesystem on mounted. i.e.:
# grep btrfs /proc/mounts
/dev/mapper/btrfs--test-btrfs--test /mnt/btrfs-test btrfs rw,relatime 0 0
My btrfs-tools appears to be from 20101101. The changelog says:
* Merging upstream version 0.19+20101101.
Cheers,
b.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2011-03-06 16:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-06 15:46 efficiency of btrfs cow Brian J. Murrell
2011-03-06 16:02 ` Fajar A. Nugraha
2011-03-06 16:11 ` Brian J. Murrell
2011-03-06 16:17 ` Calvin Walton
2011-03-06 16:18 ` Brian J. Murrell
2011-03-06 17:22 ` Freddie Cash
2011-03-06 16:06 ` Calvin Walton
2011-03-06 16:17 ` Brian J. Murrell [this message]
2011-03-23 12:39 ` Brian J. Murrell
2011-03-23 15:53 ` Chester
2011-03-23 16:19 ` Brian J. Murrell
2011-03-23 17:36 ` Kolja Dummann
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=4D73B389.1010803@interlinx.bc.ca \
--to=brian@interlinx.bc.ca \
--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).