From owner-freebsd-questions Fri Mar 1 14:25:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-169-107-10.dsl.lsan03.pacbell.net [64.169.107.10]) by hub.freebsd.org (Postfix) with ESMTP id 4982937B41A for ; Fri, 1 Mar 2002 14:25:11 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id CC2F066C32; Fri, 1 Mar 2002 14:25:10 -0800 (PST) Date: Fri, 1 Mar 2002 14:25:10 -0800 From: Kris Kennaway To: Julio Castillo Cc: questions@FreeBSD.org Subject: Re: ffs limits (on FreeBSD 4.5) Message-ID: <20020301142510.C18837@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="yLVHuoLXiP9kZBkt" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jcastillo@edgenuity.com on Fri, Mar 01, 2002 at 12:14:56PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 01, 2002 at 12:14:56PM -0800, Julio Castillo wrote: > My question is actually more on the order of the number of entries (number > of files) that can be managed by the ffs. I understand that the file > structures themselves (blocks, inodes, etc.) do occupy disk space > themselves. >=20 > On the assumption that the disk space is plentiful, are there any practic= al > limits on the number of files per file system, per directory? I'm looking > for a file system that can store anywhere between 1 million and 100 milli= on > read-only files with any directory structure that can accommodate it. In theory there aren't any hard limitations; in practise having a million files in one directory will be incredibly inefficient and you don't want to do it. Instead, think about why you think you need to have a million files in the same directory, and work out how you can break them up into a directory hierarchy indexed by the filename or some other hash, so each directory has a more manageable number of files (e.g. /data/00/12/6F/asiofjlkajsf instead of /data/asiofjlkajsf) Kris --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8f//GWry0BWjoQKURAvRPAKDZcwGl3mt0PQqSug7fHXkxWKAdkACg9b0B Ib2rrNmwOa1Hd3c8GMi4e4Y= =6K64 -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message