Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Aug 2005 14:57:50 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Xin LI <delphij@frontfree.net>
Cc:        freebsd-performance@FreeBSD.org
Subject:   Re: [RFC] Bumping ufs.dirhash_maxmem to a larger value?
Message-ID:  <42F659AE.80905@mac.com>
In-Reply-To: <20050807184707.GA61714@frontfree.net>
References:  <20050807184707.GA61714@frontfree.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Xin LI wrote:
> It seems that vfs.ufs.dirhash_maxmem is set to 2MB.  I think this value
> is slightly too small for modern machines:
[ ... ]
> My proposal is to increase the default dirhash_maxmem value to at least
> 32MB or 64MB.  Any objections?

You are undoubtedly right that allocating only 2MB for dirhash on a modern 
machine which has, for example, 1GB of RAM is too small.

On the other hand, I've got several firewall boxes with only 128MB, and it's 
not reasonable to simply dedicate up to 64MB (half!) to dirhash without paying 
more attention to the amount of physical memory that is actually available.

How big should dirhash_maxmem be?  5-10% of available RAM, perhaps?

-- 
-Chuck




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