From: Daniel Pocock <daniel@pocock.com.au>
To: Hugo Mills <hugo@carfax.org.uk>, cwillu <cwillu@cwillu.com>,
linux-btrfs@vger.kernel.org
Subject: Re: (renamed thread) btrfs metrics
Date: Mon, 02 Jan 2012 17:25:41 +0100 [thread overview]
Message-ID: <4F01DA85.4050107@pocock.com.au> (raw)
In-Reply-To: <20120102151422.GA27122@carfax.org.uk>
> It's actually not possible in general. Since it's possible to have
> different bits of the FS (data vs metadata) with different replication
> levels, one byte written to the FS could take up either 1 or 2 bytes
> of raw disk storage, and there's no way of predicting what the overall
> usage will be, so it's not possible to give an accurate estimate of
> free space.
>
> Similarly, if you have a 10G subvolume, and a snapshot of it, then
> how much space does each one take up?
Yes, I agree it is not simple
However, the lvs command from LVM does provide a useful way to show how
full a snapshot volume is. In the btrfs situation, the snapshot is
within the FS, so it is not quite the same metric
I am looking at what metrics are needed to monitor btrfs in production.
I actually look after the ganglia-modules-linux package, which includes
some FS space metrics, but I figured that btrfs throws all that out the
window.
Can you suggest metrics that would be meaningful, do I look in /proc or
with syscalls, is there any code I should look at for an example of how
to extract them with C? Ideally, Ganglia runs without root privileges
too, so please let me know if btrfs will allow me to access them
next prev parent reply other threads:[~2012-01-02 16:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-02 14:29 btrfs-tools in Debian squeeze-backports? Daniel Pocock
2012-01-02 14:43 ` Hugo Mills
2012-01-02 14:55 ` cwillu
2012-01-02 15:01 ` Daniel Pocock
2012-01-02 15:14 ` Hugo Mills
2012-01-02 16:25 ` Daniel Pocock [this message]
2012-01-02 16:39 ` (renamed thread) btrfs metrics Hugo Mills
2012-01-04 11:48 ` Daniel Pocock
2012-01-04 18:46 ` Kok, Auke-jan H
2012-01-05 10:09 ` Daniel Pocock
2015-08-30 12:31 ` (renamed thread) btrfs metrics, free space reporting Daniel Pocock
2015-08-31 2:03 ` Qu Wenruo
2012-01-04 18:05 ` btrfs-tools in Debian squeeze-backports? Jan Schmidt
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=4F01DA85.4050107@pocock.com.au \
--to=daniel@pocock.com.au \
--cc=cwillu@cwillu.com \
--cc=hugo@carfax.org.uk \
--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).