public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: xfs@oss.sgi.com
Cc: Pascal <pa5ca1@gmx.de>
Subject: Re: Maximum file system size of XFS?
Date: Mon, 11 Mar 2013 22:45:40 +0100	[thread overview]
Message-ID: <201303112245.40522.Martin@lichtvoll.de> (raw)
In-Reply-To: <20130309215121.0e614ef8@thinky>

Am Samstag, 9. März 2013 schrieb Pascal:
> Hello,

Hi Pascal,

> I am asking you because I am insecure about the correct answer and
> different sources give me different numbers.
> 
> 
> My question is: What is the maximum file system size of XFS?
> 
> The official page says: 2^63 = 9 x 10^18 = 9 exabytes
> Source: http://oss.sgi.com/projects/xfs/
> 
> Wikipedia says 16 exabytes.
> Source: https://en.wikipedia.org/wiki/XFS
> 
> Another reference books says 8 exabytes (2^63).
> 
> 
> Can anyone tell me and explain what is the maximum file system size for
> XFS?

You can test it. The theoretical limit. Whether such a filesystem will work 
nicely with a real workload is, as pointed out, a different question.

1) Use a big enough XFS filesystem (yes, it has to be XFS for anything else 
that can carry a exabyte big sparse file)

merkaba:~> LANG=C mkfs.xfs -L justcrazy /dev/merkaba/zeit
meta-data=/dev/merkaba/zeit      isize=256    agcount=4, agsize=1310720 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=5242880, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0


2) Create a insanely big sparse file

merkaba:~> truncate -s1E /mnt/zeit/evenmorecrazy.img
merkaba:~> ls -lh /mnt/zeit/evenmorecrazy.img
-rw-r--r-- 1 root root 1,0E Mär 11 22:37 /mnt/zeit/evenmorecrazy.img

(No, this won´t work with Ext4.)


3) Make a XFS file system into it:

merkaba:~> mkfs.xfs -L /mnt/zeit/evenmorecrazy.img

I won´t today. I tried that for gag during a linux performance and analysis 
training I held on a ThinkPad T520 with Sandybridge i5 2,50 GhZ, Intel SSD 
320 on an about 20 GiB XFS filesystem.

The mkfs command run for something like one or two hours. It was using quite 
some CPU and quite some SSD, but did not max out one of it.

The host XFS filesystem was almost full, so the image took just about those 
20 GiB.


4) Mount it and enjoy the output of df -hT.


5) Write to if it you dare. I did it, until the Linux kernel told something 
about "lost buffer writes". What I found strange is, that the dd writing to 
the 1E filesystem did not quit then with input/output error. It just ran on.


I didn´t test this with any larger size, but if size and time usage scales 
linearily it might be possible to create a 10EiB filesystem within 200 GiB 
host XFS and hum about a day of waiting :).

No, I do not suggest to use anything even just remotely like this in 
production.

And no, my test didn´t show that an 1EiB filesystem will work nicely with 
any real life workload.

Am I crazy for trying this? I might be :)

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2013-03-11 21:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-09 20:51 Maximum file system size of XFS? Pascal
2013-03-09 22:29 ` Ric Wheeler
2013-03-09 22:39   ` Pascal
2013-03-10  1:10     ` Eric Sandeen
2013-03-10  7:54       ` Stan Hoeppner
2013-03-11 11:02         ` Stan Hoeppner
2013-03-11 16:15           ` Hans-Peter Jansen
2013-03-11 16:22             ` Emmanuel Florac
2013-03-11  1:55     ` Dave Chinner
2013-03-11 21:45 ` Martin Steigerwald [this message]
2013-03-11 21:57   ` Martin Steigerwald
2013-03-11 22:01     ` Martin Steigerwald
2013-03-11 22:04       ` Martin Steigerwald
2013-03-20 18:26         ` Pascal
2013-03-11 22:19     ` Dave Chinner
2013-03-11 22:10   ` Martin Steigerwald

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=201303112245.40522.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=pa5ca1@gmx.de \
    --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