Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2008 10:01:12 +0100
From:      "Nick Barkas" <nick.barkas@gmail.com>
To:        dan-freebsd-fs@ourbrains.org
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Large Directories
Message-ID:  <cd41f5860811200101r15d61aceg26a44dfd0eced0af@mail.gmail.com>
In-Reply-To: <20081119143913.GA6058@ourbrains.org>
References:  <20081119052428.GC4136@ourbrains.org> <cd41f5860811190529y365f876bn4613d77c4164597d@mail.gmail.com> <20081119143913.GA6058@ourbrains.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 19, 2008 at 15:39, Dan <dan-freebsd-fs@ourbrains.org> wrote:
> Nick Barkas(nick.barkas@gmail.com)@2008.11.19 14:29:24 +0100:
> I know about dirhash, but it blows out at a few dozen thousand files.

This is because the default maximum amount of memory dirhash is
allowed to use is only 2MB. Try increasing vfs.ufs.dirhash_maxmem. Of
course, if you do have a directory larger than the amount of memory
you can allow dirhash (e.g. millions of files in a directory on a
system that doesn't have tens or hundreds of MB of memory to spare),
dirhash can't help you. I just did a test creating ten million fake
email messages in a maildir, and dirhash needed about 260MB of memory
for it.

Nick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cd41f5860811200101r15d61aceg26a44dfd0eced0af>