From: Andreas Dilger <adilger@turbolinux.com>
To: Michael Rothwell <rothwell@holly-springs.nc.us>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ext2 sparse superblocks
Date: Sun, 19 Nov 2000 22:22:53 -0700 (MST) [thread overview]
Message-ID: <200011200522.eAK5MrK04520@webber.adilger.net> (raw)
In-Reply-To: <3A175226.3A9C3180@holly-springs.nc.us> "from Michael Rothwell at Nov 18, 2000 11:08:06 pm"
Michael Rothwell write:
> I'm looking for documentation on Ext2's support for sparse superblocks.
> What it the method uses to reduce the number of superblocks? How are
> they laid out before vs after sparse_super is enabled? Any caveats?
In an old-style (non-sparse) filesystem, every block group has a superblock
copy. Only the superblock in the first group is used in normal cases. In
a sparse filesystem, superblock copies are in groups 0, 1 and ones that are
powers of 3, 5, and 7. The primary superblock is in group 0, and backups
are in groups 1, 3, 5, 7, 9, 25, 27, 49, 81, 125, etc.
This greatly reduces the number of superblock copies stored in large
filesystems. What is actually more important is that group descriptor
backups are only stored in the "sparse" groups as well. Because the
group descriptor table grows with the size of the filesystem, if there
is a backup copy in each group (as with the old non-sparse layout) it
would eventually fill the entire filesystem.
For a 1kB block non-sparse ext2 filesystem, this happens at 2TB -
basically the entire filesystem is full with metadata, and no room
to put any regular data. For a 4kB block filesystem, this would
happen at 524 TB. With sparse filesystems, the metadata will only
take a small percentage of the available space.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2000-11-20 5:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-19 4:08 Michael Rothwell
2000-11-20 5:22 ` Andreas Dilger [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=200011200522.eAK5MrK04520@webber.adilger.net \
--to=adilger@turbolinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rothwell@holly-springs.nc.us \
/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
all inboxes | Powered by JetHome®