From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 12:35:03 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 BE8B816A4CE for ; Thu, 4 Mar 2004 12:35:03 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88A1043D49 for ; Thu, 4 Mar 2004 12:35:02 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i24KXeVQ002425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Mar 2004 20:33:40 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i24KXdpp002424; Thu, 4 Mar 2004 20:33:39 GMT (envelope-from matthew) Date: Thu, 4 Mar 2004 20:33:39 +0000 From: Matthew Seaman To: Forrest Aldrich Message-ID: <20040304203339.GA2293@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Forrest Aldrich , freebsd-questions@freebsd.org References: <404786BE.1070203@forrie.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <404786BE.1070203@forrie.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j 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 20:35:03 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 04, 2004 at 02:42:54PM -0500, Forrest Aldrich wrote: > I understand that FFS has some performance problems in directory/file=20 > structures that have over 1000 entires... though I'm not sure this=20 > applies to FFS under FreeBSD-5.x. Can someone comment on this? No -- you understand incorrectly. Large directories have not been a problem since UFS_DIRHASH went into the tree, which was, oh, two and a half years ago: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D18975+0+archive/2001/fre= ebsd-fs/20010624.freebsd-fs Not that UFS did badly before that: 1000 entries in one directory probably wouldn't have been problematic. 10,000 could have been a different matter. 100,000 would have been difficult to deal with. UFS_DIRHASH is enabled in the GENERIC kernel, and has been since 2001: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/conf/GENERIC.diff?r1= =3D1.246.2.36&r2=3D1.246.2.37&only_with_tag=3DRELENG_4 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAR5KjdtESqEQa7a0RAmn/AJ9aNRT2mHIs93WQl+ihtsXdF7+mTgCfSjtW pjfQKCPspPe19dNU02vTuC4= =QCdF -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--