From: Theodore Tso <tytso@mit.edu>
To: Bernie Innocenti <bernie@codewiz.org>
Cc: lkml <linux-kernel@vger.kernel.org>,
David Woodhouse <dwmw2@infradead.org>,
ext3-users@redhat.com, ext2-devel@lists.sourceforge.net,
Stefano Fedrigo <aleph@develer.com>
Subject: Re: ext3_dx_add_entry: Directory index full!
Date: Sun, 18 May 2008 12:24:29 -0400 [thread overview]
Message-ID: <20080518162429.GE31413@mit.edu> (raw)
In-Reply-To: <48304CE2.1090808@codewiz.org>
On Sun, May 18, 2008 at 05:36:02PM +0200, Bernie Innocenti wrote:
>
> Some background: I'm moving users' Maildirs to a separate filesystem tuned
> for small files to increase performance. One of our users intentionally
> collected spam for 5 years in one folder and likes it this way.
> We could easily work it around, but first I'd like to understand whether
> the particular parameters we used trigger a bug in ext3 or if we're just
> hitting a (possibly undocumented) limit.
No, not a bug, but a limit. Ext3's hash directores are limited to a
depth of 3 blocks, which normally isn't a problem if you are using a
4k blocksize, since each internal node is small; only 8 bytes. So you
have a fanout of 508 for each internal node, and two internal nodes
gets you to over 250,000 4k directory blocks. But with a 1k
blocksize, the internal node fanout is only 124, so that only gets you
a bit more than 15,000 1k directory blocks.
We could remove this limit at some point; the problem is that Daniel
Phillip's original code had this as a limitation, and fixing it would
mean replacing the tree implementation. We actually have some code
from Lustre that we could use for this purpose, but to date we've been
focused on some other higher priority items for ext4.
- Ted
next prev parent reply other threads:[~2008-05-18 16:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-18 15:36 ext3_dx_add_entry: Directory index full! Bernie Innocenti
2008-05-18 15:38 ` Bernie Innocenti
2008-05-18 18:32 ` Jan Engelhardt
2008-05-18 21:04 ` Theodore Tso
2008-05-19 0:58 ` Bernie Innocenti
2008-05-18 15:39 ` David Woodhouse
2008-05-18 15:44 ` Bernie Innocenti
2008-05-18 16:24 ` Theodore Tso [this message]
2008-05-18 23:01 ` Stefano Fedrigo
2008-05-19 0:49 ` Theodore Tso
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=20080518162429.GE31413@mit.edu \
--to=tytso@mit.edu \
--cc=aleph@develer.com \
--cc=bernie@codewiz.org \
--cc=dwmw2@infradead.org \
--cc=ext2-devel@lists.sourceforge.net \
--cc=ext3-users@redhat.com \
--cc=linux-kernel@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