From: Russell Coker <russell@coker.com.au>
To: bo.li.liu@oracle.com
Cc: linux-btrfs@vger.kernel.org
Subject: Re: du accuracy
Date: Sun, 12 Apr 2015 21:12:46 +1000 [thread overview]
Message-ID: <201504122112.47205.russell@coker.com.au> (raw)
In-Reply-To: <20150410104015.GB10185@localhost.localdomain>
On Fri, 10 Apr 2015, Liu Bo <bo.li.liu@oracle.com> wrote:
> > Above are some consecutive du runs. Why does the space used go from 1.2G
> > to 1.1G before going up again? The file was created by "cat /dev/sde >
> > 2gsd" so it definitely wasn't getting smaller.
> >
> >
> >
> > What's going on here?
>
> What's your mount options? with autodefrag or compression?
Linux server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt4-2 (2015-01-27) x86_64
GNU/Linux
Above is the kernel I'm using, one of the recent ones from Debian/Jessie.
UUID=XXXX /big btrfs skip_balance,relatime,nosuid,nodev 0 0
Above is the /etc/fstab line.
/dev/sdb2 /big btrfs
rw,seclabel,nosuid,nodev,relatime,space_cache,skip_balance 0 0
Above is the /proc/mounts line. I'm not doing anything noteworthy here.
# du -h tmp|tail -1 ; sleep 10 ; du -h tmp|tail -1
1.6G tmp
1.4G tmp
I've just had something similar happen when rsyncing a directory full of files
to the server and running du to check on the progress. It's probably possible
that a rename could happen at the wrong time to cause a file to be missed in
the du count. So this could be legit. But the case described in my previous
message concerned a single file that was being extended.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
prev parent reply other threads:[~2015-04-12 11:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 1:25 du accuracy Russell Coker
2015-04-10 10:40 ` Liu Bo
2015-04-12 11:12 ` Russell Coker [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=201504122112.47205.russell@coker.com.au \
--to=russell@coker.com.au \
--cc=bo.li.liu@oracle.com \
--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