From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 13:03:49 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C64C16A4CE for ; Thu, 4 Mar 2004 13:03:49 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 293CE43D2F for ; Thu, 4 Mar 2004 13:03:49 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i24L3gBZ034762; Thu, 4 Mar 2004 15:03:42 -0600 (CST) (envelope-from dan) Date: Thu, 4 Mar 2004 15:03:42 -0600 From: Dan Nelson To: Forrest Aldrich Message-ID: <20040304210342.GB43293@dan.emsphone.com> References: <404786BE.1070203@forrie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <404786BE.1070203@forrie.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Problems with FFS and directories of over 1000 entries.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 21:03:49 -0000 In the last episode (Mar 04), Forrest Aldrich said: > I understand that FFS has some performance problems in directory/file > structures that have over 1000 entires... though I'm not sure this > applies to FFS under FreeBSD-5.x. Can someone comment on this? I see no issues on my systems, either 4.x or 5.x, with up to 10k files in a directory. Enabling the UFS_DIRHASH kernel option (available in 4.4 and later) will greatly speed up access to large directories, at the cost of a little memory (adjustable via sysctl). -- Dan Nelson dnelson@allantgroup.com