From owner-freebsd-performance@FreeBSD.ORG Sun Aug 7 21:43:38 2005 Return-Path: X-Original-To: freebsd-performance@FreeBSD.org Delivered-To: freebsd-performance@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 680) id 5C12716A420; Sun, 7 Aug 2005 21:43:38 +0000 (GMT) Date: Sun, 7 Aug 2005 21:43:38 +0000 From: Darren Reed To: freebsd-performance@FreeBSD.org Message-ID: <20050807214338.GA34438@hub.freebsd.org> References: <20050807185129.GA61807@frontfree.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050807185129.GA61807@frontfree.net> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Mon, 08 Aug 2005 00:54:30 +0000 Cc: Subject: Re: [RFC] Bumping ufs.dirhash_maxmem to a larger value? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2005 21:43:38 -0000 On Mon, Aug 08, 2005 at 02:51:29AM +0800, Xin LI wrote: ... > My proposal is to increase the default dirhash_maxmem value to at least > 32MB or 64MB. Any objections? > > Cons for this, discussed in -developer: > - dirhash does not implements automatical mechanism to reduce memory > usage in response to system memory pressure, and benefits mainly to > large directories, e.g. Maildirs. So why not make the determination of "dirhash_maxmem" the result of some calculation(s) that takes into account RAM size, etc ? The obvious lesson here is that picking a number to be a limit based on the current size of machines fails the test of time. Darren