From: Valerie Clement <valerie.clement@bull.net>
To: Theodore Tso <tytso@mit.edu>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [RFC][PATCH 0/4] BIG_BG: support of large block groups
Date: Thu, 30 Nov 2006 16:17:41 +0100 [thread overview]
Message-ID: <456EF615.1090205@bull.net> (raw)
In-Reply-To: <20061129172318.GD5771@thunk.org>
Theodore Tso wrote:
> So what's the current limitation on the maximum size of the filesystem
> without big block groups? Well, the block group number is an unsigned
> 32 bit number, so we can have 2**32 block group. Using a 4k (2**12)
> block group, have a limit of 32768 blocks per block group, or 2**15
> blocks. So the limit is 2**(32+15) or 2**47 blocks, or 2**59 bytes
> (512 petabytes).
Hi Ted,
thanks for your comments.
In fact, there is another limitation related to the block group size:
all the group descriptors are stored in the first group of the filesystem.
Currently, with a 4-KB block size, the maximum size of a group is
2**15 blocks = 2**27 bytes.
With a group descriptor size of 32 bytes, we can store a maximum of
2**32 / 32 = 2**22 group descriptors in the first group.
So the maximum number of groups is limited to 2**22 which limits the
size of the filesystem to
2**22(groups) * 2**15(blocks) * 2**12(blocksize) = 2**49 bytes = 512TB
With big block groups, we can grow beyond this limit of 512TB.
>
> Based on this analysis, it's clear that the big block groups patch has
> some benefits, but I'm wondering if they are sufficiently large to be
> worth it, especially since we also have to consider the changes
> necessary to the e2fsprogs (which haven't been written yet as far as I
> know).
I already made changes in the e2fsprogs to support larger block groups,
but there is still some work to do.
The first thing is when creating a large filesystem (over 512TB or
perhaps before) which is the optimal value for the block group size ?
How to set its default value used by mkfs ?
It is why I do tests now to see the behavior of a system when increasing
the size of the block groups.
Valérie
next prev parent reply other threads:[~2006-11-30 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-24 16:47 [RFC][PATCH 0/4] BIG_BG: support of large block groups Valerie Clement
2006-11-29 17:23 ` Theodore Tso
2006-11-30 15:17 ` Valerie Clement [this message]
2006-11-30 19:41 ` Theodore Tso
2006-12-01 12:06 ` Andreas Dilger
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=456EF615.1090205@bull.net \
--to=valerie.clement@bull.net \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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).