From owner-freebsd-questions@FreeBSD.ORG Wed Mar 10 16:51:53 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9075D106564A for ; Wed, 10 Mar 2010 16:51:53 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from smtp.3dresearch.com (dorabella.3dresearch.com [66.167.251.2]) by mx1.freebsd.org (Postfix) with ESMTP id 64B348FC1E for ; Wed, 10 Mar 2010 16:51:53 +0000 (UTC) Received: from fracasso.3dresearch.com (pool-96-235-3-239.pitbpa.east.verizon.net [96.235.3.239]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vmail.3dresearch.com (Postfix) with ESMTP id 489E094104 for ; Wed, 10 Mar 2010 11:51:52 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by fracasso.3dresearch.com (Postfix) with ESMTP id B21EB179DA for ; Wed, 10 Mar 2010 11:51:51 -0500 (EST) From: Janos Dohanics Organization: 3D RESEARCH To: freebsd-questions@freebsd.org Date: Wed, 10 Mar 2010 11:51:50 -0500 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201003101151.50738.web@3dresearch.com> Subject: Directory with large number of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 16:51:53 -0000 I have a directory with over 180,000 files in 4 subdirectories. Over 170,000 of the files are in one of the subdirectories. The files are image files, mostly <50K. The machine has 2 GB RAM. What would be a reasonable setting for vfs.ufs.dirhash_maxmem? Is there a disadvantage to setting vfs.ufs.dirhash_maxmem too high? Is there any other setting to change to find files faster in a directory with such large number of files? Thank you for your advice. -- Janos Dohanics