From owner-freebsd-questions Wed Feb 7 9:47: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from harumscarum.mr.itd.umich.edu (harumscarum.mr.itd.umich.edu [141.211.125.17]) by hub.freebsd.org (Postfix) with ESMTP id 40B2837B6AC for ; Wed, 7 Feb 2001 09:46:37 -0800 (PST) Received: from tim.elnsng1.mi.home.com (c1129767-a.elnsng1.mi.home.com [24.183.248.20]) by harumscarum.mr.itd.umich.edu (8.9.3/3.3s) with SMTP id MAA11258; Wed, 7 Feb 2001 12:46:34 -0500 (EST) From: Tim McMillen To: "Hiu F. Ho" , freebsd-questions@FreeBSD.ORG Subject: Re: Limit on number of sub-directories? Date: Wed, 7 Feb 2001 12:24:48 -0500 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" References: <20010207165114.54119.qmail@web9807.mail.yahoo.com> In-Reply-To: <20010207165114.54119.qmail@web9807.mail.yahoo.com> MIME-Version: 1.0 Message-Id: <01020712244807.04621@tim.elnsng1.mi.home.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday February 07, 2001 11:51, Hiu F. Ho wrote: > Hi, > > Is there a limit on the number of sub-directories I can have in a > directory? (I'm using FreeBSD 4.0, 4.1, and 4.2.) Thank you. Yes, but it is pretty large. I'm not an ffs expert, but after reading in the SMM, the only limit I see is in the number of inodes allocated when the filesystem is created. See man newfs for the info on how many inodes are created. As I understand it, by default there is an inode created for every 4k of disk space per filesystem. So it is possible to create too many directories and use up all the inodes. That means you could only create 250 files in a MB of space. But for a 1gb filesystem that works out to 250,000 fiels so it should be enough. As it says in the manpage that means the average file is expected to be 4k. If yours is smaller you need more inodes. To get more inodes, you need to recreate the filesystem with a lower value for -i. More inodes means a longer fsck time also, so that is why the default is low I guess. Tim > > -Hiu > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- /""\ \ / X ASCII Ribbon Campaign - Say NO to HTML in email / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message