From: Dave Chinner <david@fromorbit.com>
To: Martin Steigerwald <Martin@lichtvoll.de>
Cc: Manny <dermaniac@gmail.com>, Eric Sandeen <sandeen@sandeen.net>,
xfs@oss.sgi.com
Subject: Re: Insane file system overhead on large volume
Date: Mon, 30 Jan 2012 09:18:03 +1100 [thread overview]
Message-ID: <20120129221803.GF15102@dastard> (raw)
In-Reply-To: <201201281723.42786.Martin@lichtvoll.de>
On Sat, Jan 28, 2012 at 05:23:42PM +0100, Martin Steigerwald wrote:
> Am Samstag, 28. Januar 2012 schrieb Eric Sandeen:
> > On 1/28/12 8:55 AM, Martin Steigerwald wrote:
> For the gory details:
>
> > > Why is it that I get
> […]
> > > merkaba:/tmp> LANG=C df -hT /mnt/zeit
> > > Filesystem Type Size Used Avail Use% Mounted on
> > > /dev/loop0 xfs 30T 33M 30T 1% /mnt/zeit
> > >
> > >
> > > 33MiB used on first mount instead of 5?
> >
> > Not sure offhand, differences in xfsprogs version mkfs defaults
> > perhaps.
>
> Okay, thats fine with me. I was just curious. It doesn´t matter much.
More likely the kernel. Older kernels only use 1024 blocks for
the reserve block pool, while more recent ones use 8192 blocks.
$ gl -n 1 8babd8a
commit 8babd8a2e75cccff3167a61176c2a3e977e13799
Author: Dave Chinner <david@fromorbit.com>
Date: Thu Mar 4 01:46:25 2010 +0000
xfs: Increase the default size of the reserved blocks pool
The current default size of the reserved blocks pool is easy to deplete
with certain workloads, in particular workloads that do lots of concurrent
delayed allocation extent conversions. If enough transactions are running
in parallel and the entire pool is consumed then subsequent calls to
xfs_trans_reserve() will fail with ENOSPC. Also add a rate limited
warning so we know if this starts happening again.
This is an updated version of an old patch from Lachlan McIlroy.
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
> But when I review it, creating a 30TB XFS filesystem should involve writing
> some metadata at different places of the file.
>
> I get:
>
> merkaba:/mnt/zeit> LANG=C xfs_bmap fsfile
> fsfile:
> 0: [0..255]: 96..351
> 1: [256..2147483639]: hole
> 2: [2147483640..2147483671]: 3400032..3400063
> 3: [2147483672..4294967279]: hole
> 4: [4294967280..4294967311]: 3400064..3400095
> 5: [4294967312..6442450919]: hole
> 6: [6442450920..6442450951]: 3400096..3400127
> 7: [6442450952..8589934559]: hole
.....
Yeah, that's all the AG headers.
> Okay, it needed to write 2 GB:
>
> merkaba:/mnt/zeit> du -h fsfile
> 2,0G fsfile
> merkaba:/mnt/zeit> du --apparent-size -h fsfile
> 30T fsfile
> merkaba:/mnt/zeit>
>
> I didn´t expect mkfs.xfs to write 2 GB, but when thinking through it
> for a 30 TB filesystem I find this reasonable.
It zeroed the log, which will be just under 2GB in size for a
filesystem that large. Zeroing the log accounts for >99% of the IO
that mkfs does for most normal cases.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-01-29 22:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 7:50 Insane file system overhead on large volume Manny
2012-01-27 10:44 ` Christoph Hellwig
2012-01-27 19:15 ` Manny
2012-01-27 18:21 ` Eric Sandeen
2012-01-28 14:55 ` Martin Steigerwald
2012-01-28 15:35 ` Eric Sandeen
2012-01-28 16:05 ` Christoph Hellwig
2012-01-28 16:07 ` Eric Sandeen
2012-01-28 16:23 ` Martin Steigerwald
2012-01-29 22:18 ` Dave Chinner [this message]
2012-01-27 19:08 ` Stan Hoeppner
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=20120129221803.GF15102@dastard \
--to=david@fromorbit.com \
--cc=Martin@lichtvoll.de \
--cc=dermaniac@gmail.com \
--cc=sandeen@sandeen.net \
--cc=xfs@oss.sgi.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