From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 06:50:34 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 7EC701065674 for ; Mon, 10 Nov 2008 06:50:34 +0000 (UTC) (envelope-from no-spam@people.net.au) Received: from smtp.ade.people.net.au (smtp.ade.people.net.au [218.214.228.98]) by mx1.freebsd.org (Postfix) with SMTP id BC0AB8FC20 for ; Mon, 10 Nov 2008 06:50:33 +0000 (UTC) (envelope-from no-spam@people.net.au) Received: (qmail 11469 invoked from network); 10 Nov 2008 06:50:30 -0000 Received: from unknown (HELO bigblack) (218.214.176.70) by smtp.ade.people.net.au with SMTP; 10 Nov 2008 06:50:30 -0000 From: Ian To: Matthew Seaman Date: Mon, 10 Nov 2008 17:19:49 +1030 User-Agent: KMail/1.9.9 References: <50261.1226194851@people.net.au> <20081109024046.GB27423@icarus.home.lan> <4916D492.5040406@infracaninophile.co.uk> In-Reply-To: <4916D492.5040406@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1454134.eXmqOjE60R"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200811101719.56495.no-spam@people.net.au> Cc: Jeremy Chadwick , 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: Mon, 10 Nov 2008 06:50:34 -0000 --nextPart1454134.eXmqOjE60R Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 9 Nov 2008 22:46:18 Matthew Seaman wrote: > Jeremy Chadwick wrote: > > I don't want to change the topic of discussion, but I *highly* recommend > > you ***stop*** whatever it is you're doing that is creating such a > > directory structure. Software which has to iterate through that > > directory using opendir() and readdir() will get slower and slower as > > time goes on. > > With the implementation of UFS_DIRHASH the practical limit on the > size of directories is now a great deal larger. In particular > the slow down caused by linear search through the contents has been > eliminated. See ffs(7). 10,000 files or sub-directories, whist > not a particularly elegant setup, is actually not unworkable > nowadays. Well that's certainly been my experience so far. Still, I now know we will = run=20 into problems when we hit the 32,768 limit, so I'll start designing somethi= ng=20 better. Cheers, =2D-=20 Ian gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc --nextPart1454134.eXmqOjE60R Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkkX2ZQACgkQPUlnmbKkJ6DoXgCfW1Wsj7a1bpjAqLAZlrhyRjyB /pEAoIx/xe8LNh1pj1SKUg6ukVMOU6zI =Q4kt -----END PGP SIGNATURE----- --nextPart1454134.eXmqOjE60R--