From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org, kreijack@inwind.it
Cc: cwillu <cwillu@cwillu.com>,
"Chris Murphy" <lists@colorremedies.com>,
"Hugo Mills" <hugo@carfax.org.uk>,
"Michael Kjörling" <michael@kjorling.se>
Subject: Re: [RFC] New attempt to a better "btrfs fi df"
Date: Sun, 28 Oct 2012 12:16:43 +0100 [thread overview]
Message-ID: <201210281216.43983.Martin@lichtvoll.de> (raw)
In-Reply-To: <508D0FC5.1020404@inwind.it>
Am Sonntag, 28. Oktober 2012 schrieb Goffredo Baroncelli:
> > What was your reasoning for not using options to btrfs filesystem df?
> > That df doesn´t show more than "disk free" as well?
>
> My feel is that a switch should change "a bit" a command. In this case
> there are very different outputs, for different purposes (how is used a
> disk ? where are the chunks ? how many free space I have ? ).
Hmm.
The question whether how these are all related to the question on how much
space is free?
Are they related? Then a single command makes sense. Are they completely
different outputs? Then separate commands make sense.
I think, before continuing to argue over the details of the output and
options, it would be good to get the use cases clear.
My first and most important use case would be:
How much space is used and more importantly how much space is still free?
A further use case would be:
Is a some disk on my BTRFS RAID limiting the usable space by being too
small in compared to other disks?
And then:
Is there a imbalance in disk allocation that prevents me from using all
space and that I can have fixed by doing a balance operation?
Maybe also:
What would be a good way to extend the usable space in my BTRFS given the
current disks, their sizes and the current allocation strategies? Could
even be a simulation. btrfs filesystem df -a /dev/sdi1 and then it shows
how usable size would change if /dev/sdi1 was added to the fs.
And then subvolume related questions like:
Which subvolumes are using up all this disk space?
Anything else?
With the use cases in mind we can work out what a good output would be by
asking ourselves: Does the output(s) answer the questions from the use
cases?
Given above use cases, I think its most important to get the summary view
into btrfs filesystem df and then go from there for additional details
provided by options or different commands.
Given that the summary view IMHO was quite uncontroversial I think it can
go in already while we discuss the other stuff, can´t it?
IMHO it would then be good to also fix regular df to provide a free space
like in the summary view. Maybe by being conservative and using the
smallest estimation. But mabye its just me who never really understood why
a 100 GB BTRFS RAID1 shows 200GB of free space and a 100 MB file on it
occupies 200MB.
Currently the regular df output, while technically somewhat correct, IMHO
is just of no good use for anyone using a BTRFS raid. Especially with
applications that use df value to determine how much data to place on a
volume like fscache or other caches. Hmmm, however these will work if
using a percentage, cause that would still be correct, cause 180 GB of 200
GB is still 90% like 90 GB of 100GB. But they would over-allocate if being
told to leave 10 GB free or so.
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
next prev parent reply other threads:[~2012-10-28 11:16 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 19:21 [RFC] New attempt to a better "btrfs fi df" Goffredo Baroncelli
2012-10-25 19:40 ` cwillu
2012-10-25 19:59 ` Goffredo Baroncelli
2012-10-25 20:06 ` cwillu
2012-10-25 20:36 ` Chris Murphy
2012-10-25 20:49 ` cwillu
2012-10-25 20:52 ` Goffredo Baroncelli
2012-10-25 20:03 ` Chris Murphy
2012-10-25 20:11 ` cwillu
2012-10-25 20:41 ` Goffredo Baroncelli
2012-10-26 2:33 ` Chris Murphy
2012-10-26 3:36 ` cwillu
2012-10-26 4:03 ` Chris Murphy
2012-10-27 15:05 ` Chris Murphy
2012-10-27 16:43 ` Martin Steigerwald
2012-10-27 19:55 ` Michael Kjörling
2012-10-27 22:30 ` Martin Steigerwald
2012-10-27 22:38 ` Hugo Mills
2012-10-27 23:01 ` Michael Kjörling
2012-10-28 10:58 ` Martin Steigerwald
2012-10-28 8:45 ` Goffredo Baroncelli
2012-10-28 10:38 ` Martin Steigerwald
2012-10-28 10:59 ` Goffredo Baroncelli
2012-10-28 11:18 ` Michael Kjörling
2012-10-28 12:25 ` Goffredo Baroncelli
2012-10-28 12:48 ` Michael Kjörling
2012-10-28 13:22 ` Martin Steigerwald
2012-10-27 23:35 ` Chris Murphy
2012-10-28 11:20 ` Michael Kjörling
2012-10-28 9:01 ` Goffredo Baroncelli
2012-10-28 10:33 ` Martin Steigerwald
2012-10-28 10:58 ` Goffredo Baroncelli
2012-10-28 11:16 ` Martin Steigerwald [this message]
2012-10-28 18:27 ` Chris Murphy
2012-10-28 19:06 ` Michael Kjörling
2012-10-28 19:42 ` Chris Murphy
2012-10-28 20:09 ` Michael Kjörling
2012-10-28 20:19 ` Chris Murphy
2012-10-29 9:04 ` Michael Kjörling
2012-10-30 4:41 ` Chris Murphy
2012-10-28 19:42 ` Chris Murphy
2012-10-29 13:06 ` Randy Barlow
2012-10-29 22:21 ` [RFC][V2] " Goffredo Baroncelli
2012-10-30 9:42 ` Michael Kjörling
2012-10-30 18:15 ` Goffredo Baroncelli
2012-10-30 18:32 ` Michael Kjörling
2012-10-30 20:13 ` Chris Murphy
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=201210281216.43983.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=cwillu@cwillu.com \
--cc=hugo@carfax.org.uk \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=michael@kjorling.se \
/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.