From owner-freebsd-questions Thu Feb 27 18:28:38 2003 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 CA25537B401 for ; Thu, 27 Feb 2003 18:28:36 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09CF043FBD for ; Thu, 27 Feb 2003 18:28:36 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from ra.dweebsoft.com (localhost [127.0.0.1]) by ra.dweebsoft.com (8.12.6/8.12.6) with ESMTP id h1S2SZCF067423; Thu, 27 Feb 2003 18:28:35 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: (from http@localhost) by ra.dweebsoft.com (8.12.6/8.12.3/Submit) id h1S2SZUv067422; Thu, 27 Feb 2003 18:28:35 -0800 (PST) X-Authentication-Warning: ra.dweebsoft.com: http set sender to daxbert_news@dweebsoft.com using -f Received: from 64.81.58.36 ( [64.81.58.36]) as user daxbert@localhost by ra.dweebsoft.com with HTTP; Thu, 27 Feb 2003 18:28:34 -0800 Message-ID: <1046399314.3e5ec952c1b0a@ra.dweebsoft.com> Date: Thu, 27 Feb 2003 18:28:34 -0800 From: Daxbert To: How Can ThisBe Cc: "" , Erik Trulsson Subject: Re: File system limits MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 64.81.58.36 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 Quoting Erik Trulsson : > On Fri, Feb 28, 2003 at 12:11:14AM +0000, How Can ThisBe wrote: > > I'm working on a little experimental script and I'm wondering if there > > is any kind of limit as to how many files or subdirectories a directory > > can have. > > Yes, there is a limit on how many subdirectories a directory can have. > This is because there is a limit on how many hardlinks there can be to > > > > I'm in the planing stages at the moment and I'm think that I may have > > upto 4096 directories in a single directory, each of these 4096 > > directories could have upto 4096 sub directories... > > That should not be a problem. Depending on how you access these > directories you *might* see some of the slowdown for large directories FWIW- At some point you might want to ask... should this be a filesystem? or a database? If you're looking to stress test a FS that's one thing, but handling tens of thousands of little bits of data is sometimes managed better with a simple database. I've seen instances where a recursive script went *nuts* and created a directory structure so deep it couldn't be removed with a simple rm -rf. --daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message