From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: -musage=>0 means always reporting relocation
Date: Sun, 11 May 2014 16:17:44 +0000 (UTC) [thread overview]
Message-ID: <pan$bf0a8$25fa97dc$2ae1cf04$b68a5dc3@cox.net> (raw)
In-Reply-To: 201405111943.16913.russell@coker.com.au
Russell Coker posted on Sun, 11 May 2014 19:43:16 +1000 as excerpted:
> Below is the output of running a balance a few times on a 120G SSD.
>
> It seems that whenever I set the metadata usage to be greater than 0 it
> will report relocating something, regardless of whether that's possible.
Why would it be impossible? It's certainly not impossible from the
information posted.
As Brendan suggests, depending on the amount of metadata present, it's
entirely possible that you have enough to fill X whole metadata chunks,
plus under 10% and possibly under 1% of the next chunk, such that
repeatedly running -musage=10 or -musage=1 will repeatedly balance that
last chunk.
Also, not being a dev I don't normally read code to know whether this is
an issue or not, but given that btrfs will inline small enough files in
the metadata, it's theoretically possible that a balanced state where
more than one metadata chunk remains less than 100% full, if the inlined
file data doesn't line up to exact chunks.
Then of course there's the dup or raid1 metadata case (dup being the
normal single-device metadata default, except if ssd is detected, raid1
being the multi-device metadata default in all cases), such that all
metadata chunks are duplicated, effectively doubling the number of chunks
rebalanced since each one has two copies.
--
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
prev parent reply other threads:[~2014-05-11 16:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-11 9:43 -musage=>0 means always reporting relocation Russell Coker
2014-05-11 9:52 ` Russell Coker
2014-05-11 14:11 ` Brendan Hide
2014-05-12 16:17 ` David Sterba
2014-05-13 7:57 ` Russell Coker
2014-05-13 18:06 ` Duncan
2014-05-11 16:17 ` Duncan [this message]
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$bf0a8$25fa97dc$2ae1cf04$b68a5dc3@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).