All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Dryomov <idryomov@gmail.com>
To: Andreas Philipp <philipp.andreas@gmail.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Calculating/estimating the process of an ongoing balance
Date: Sat, 19 Mar 2011 13:25:34 +0200	[thread overview]
Message-ID: <20110319112534.GA7404@kwango.lan.net> (raw)
In-Reply-To: <4D848D2B.9000303@gmail.com>

On Sat, Mar 19, 2011 at 12:02:03PM +0100, Andreas Philipp wrote:
> Hi all,
> 
> During a btrfs filesystem balance there are lines like the following
> one in dmesg
> btrfs: relocating block group 2122280075264 flags 9
> Since the "big" number is strictly decreasing, I wonder whether this
> can be used as some progress counter? For example,
> do I get something like a percentage of what has been done/balanced by
> the following formula:
> (h-l)/h
> where h is the highest, i.e. first, value and l is the last, i.e.
> smallest, value?

The patches have been posted to the list, although I'm not sure what
their current status is [1].  If you feel like it, apply and test them,
any feedback is more than welcome.

[1] - http://thread.gmane.org/gmane.comp.file-systems.btrfs/7487/

> Just for interest: There are two types of these lines appearing. One
> type with 'flags 9' and one with 'flags 20'. Do the first ones refer
> to block groups holding metadata and the second ones to block groups
> holding data or is it totally different (and more complicated)?

Yes, you are right.  9 designates a raid0 data block group and 20 means
a raid1 metadata group.

> Thanks,
> Andreas Philipp

Thanks,

		Ilya

      reply	other threads:[~2011-03-19 11:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19 11:02 Calculating/estimating the process of an ongoing balance Andreas Philipp
2011-03-19 11:25 ` Ilya Dryomov [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=20110319112534.GA7404@kwango.lan.net \
    --to=idryomov@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=philipp.andreas@gmail.com \
    /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.