From: Martin Steigerwald <Martin@lichtvoll.de>
To: Chris Murphy <lists@colorremedies.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: 3.17: Yay! New sizes in df -h
Date: Sun, 31 Aug 2014 12:34:27 +0200 [thread overview]
Message-ID: <2090485.596Ci4qveW@merkaba> (raw)
In-Reply-To: <B16D2447-74E8-44CD-BC56-BB3AA7E8A99C@colorremedies.com>
Am Mittwoch, 27. August 2014, 10:54:56 schrieb Chris Murphy:
> On Aug 27, 2014, at 5:45 AM, Martin Steigerwald <Martin@lichtvoll.de> wrote:
> > Hi!
> >
> > Now I get this with 3.17-rc2:
> >
> > merkaba:~> LANG=C df -hT / /home
> > Filesystem Type Size Used Avail Use% Mounted on
> > /dev/dm-5 btrfs 30G 17G 23G 43% /
> > /dev/dm-0 btrfs 160G 129G 59G 69% /home
> >
> >
> > /: 17+23 = 40 GiB, compressed 10 GiB away with lzo?
> > /home: 59+129 = 188 GiB, compressed 28 GiB away with lzo?
> >
> >
> > This is BTRFS RAID 1 on Dual SSD:
> >
> > merkaba:~> btrfs fi df /
> > Data, RAID1: total=25.00GiB, used=15.33GiB
> > System, RAID1: total=8.00MiB, used=16.00KiB
> > Metadata, RAID1: total=2.00GiB, used=677.33MiB
> > unknown, single: total=240.00MiB, used=0.00
> >
> > merkaba:~> btrfs fi df /home
> > Data, RAID1: total=154.97GiB, used=125.70GiB
> > System, RAID1: total=32.00MiB, used=48.00KiB
> > Metadata, RAID1: total=5.00GiB, used=2.71GiB
> > unknown, single: total=512.00MiB, used=0.00
>
> Hmm, I'm not seeing such a large discrepancy between Used+Avail and Size.
I see.
Well the /home has a large maildir and lots of git checkouts with highly
compressible text files.
My data directory for larger files which is only on the mSATA SSD doesn´t
have this discrepancy:
merkaba:~> LANG=C df -hT /daten
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/msata-daten btrfs 200G 183G 17G 92% /daten
merkaba:~> btrfs fi df /daten
Data, single: total=187.01GiB, used=182.05GiB
System, single: total=4.00MiB, used=48.00KiB
Metadata, single: total=1.01GiB, used=288.09MiB
unknown, single: total=112.00MiB, used=0.00
I also use compress=lzo on it, although it I wonder whether its necessary as I
think the Crucial m500 mSATA SSD firmware compresses itself while the Intel
SSD 320 SATA SSD firmware does not. But still even with compression in the
firmware, it BTRFS compresses I can use more of the capacity. I wonder
whether this can harm the reliability of the SSD, if its firmware relies on
at least partly compressible data.
> No compression, all volumes populated with send/receive and contain same
> data.
Well I wouldn´t expect to see discrepancies without compressed data. But on
the other hand I did not dig into how the new calculation actually works so
far.
> 3.16.1
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sdb 40G 2.8G 37G 7% /home # single 40GB
> device /dev/sdc 40G 5.5G 33G 15% /mnt # two 20GB
> devices, raid1
>
> Reboot 3.17.0rc2
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sdb 40G 2.8G 37G 7% /home # single 40GB
> device /dev/sdc 20G 2.8G 17G 15% /mnt # two 20GB
> devices, raid1
>
> ======
> sde is two 20GB devices, raid1, -o compress, populated the same as above w/
> send/receive
>
> 3.16.1
> Filesystem Size Used Avail Use% Mounted on
> /dev/sde 40G 3.8G 35G 10% /mnt
>
> 3.17.0rc2
> Filesystem Size Used Avail Use% Mounted on
> /dev/sde 20G 2.0G 18G 10% /mnt
>
>
> In the last example, Used went from 2.8G to 2.0G due to compression. But
> with or without compression, Used+Avail=Size.
Hmmm, I see. Then it might not be compression at all what explains the
differences I see?
Any other explainations?
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:[~2014-08-31 10:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 11:45 3.17: Yay! New sizes in df -h Martin Steigerwald
2014-08-27 16:54 ` Chris Murphy
2014-08-31 10:34 ` Martin Steigerwald [this message]
2014-08-31 17:01 ` 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=2090485.596Ci4qveW@merkaba \
--to=martin@lichtvoll.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.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 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).