From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 14:39:55 2008 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 8C5031065676 for ; Sun, 9 Nov 2008 14:39:55 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8031F8FC12 for ; Sun, 9 Nov 2008 14:39:53 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2) with ESMTP id mA9EdfDR085004; Sun, 9 Nov 2008 15:39:41 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2/Submit) with ESMTP id mA9EddXm085001; Sun, 9 Nov 2008 15:39:39 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 9 Nov 2008 15:39:38 +0100 (CET) From: Wojciech Puchar To: no-spam@people.net.au In-Reply-To: <50261.1226194851@people.net.au> Message-ID: <20081109152835.N49145@wojtek.tensor.gdynia.pl> References: <50261.1226194851@people.net.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: UFS2 limits 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: Sun, 09 Nov 2008 14:39:55 -0000 > Hi, > I have a FreeBSD server that has about 10,500 subdirectories within a single > directory. > This number will keep rising and I assume UFS2 has a limit to the number of > sub-directories in a single directory - can anyone tell me what it is? make sure your kernel is compiled with options UFS_DIRHASH or it will be slow the limit is 32765, just because link count is 2 bytes wide and each subdir adds two to base directory. you have to change to 2 level hierarchy. with files - i started creating empty files, it turned slow after about 320000.