From owner-freebsd-fs@FreeBSD.ORG Sat Oct 9 19:52:13 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52F1B106564A for ; Sat, 9 Oct 2010 19:52:13 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 0DF528FC13 for ; Sat, 9 Oct 2010 19:52:12 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P4fSi-0001ZB-6T for freebsd-fs@freebsd.org; Sat, 09 Oct 2010 21:52:08 +0200 Received: from 93-138-93-169.adsl.net.t-com.hr ([93.138.93.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Oct 2010 21:52:08 +0200 Received: from ivoras by 93-138-93-169.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Oct 2010 21:52:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Ivan Voras Date: Sat, 09 Oct 2010 21:51:47 +0200 Lines: 22 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-93-169.adsl.net.t-com.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20101008 Thunderbird/3.1.4 Subject: Increasing ufs.dirhash_maxmem by default X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 19:52:13 -0000 hi, Several people have worked on dirhash in the past so I'm posting here instead of individually pinging them. The default dirhash_maxmem is currently set as 2 MB, which while may be sufficient some time ago it certainly isn't now. I've had to increase it on practically all non-trivial servers and even high-end desktops, and there are occasional reports on the lists that suggest it's a fairly common thing. What I'd like to do is either: 1) Simply increase the default to e.g. 32 MB (trivial change) or 2) Make it a function of hibufspace (e.g. 1/32th of it, capped at 64 MB) which is itself autotuned. This would happen in ufsdirhash_init(). The current incarnation of dirhash has a vm_lowmem handler so it doesn't look like it could starve a system if overtuned. Ideas? Objections?