From owner-freebsd-questions Thu Sep 20 10:25:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 6EEB837B40B for ; Thu, 20 Sep 2001 10:25:38 -0700 (PDT) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.6/8.11.6) with ESMTP id f8KHPb515699 for ; Thu, 20 Sep 2001 19:25:37 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id TAA29955 for ; Thu, 20 Sep 2001 19:25:36 +0200 (CEST) Received: (qmail 1111 invoked by uid 1001); 20 Sep 2001 17:25:32 -0000 Date: Thu, 20 Sep 2001 19:25:32 +0200 From: Erik Trulsson To: "Dreamtime.net Inc." Cc: questions@freebsd.org Subject: Re: Inodes Message-ID: <20010920192531.A1071@student.uu.se> Mail-Followup-To: "Dreamtime.net Inc." , questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i 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 On Thu, Sep 20, 2001 at 08:58:33AM -0700, Dreamtime.net Inc. wrote: > Does anyone know how many inodes are created by default with 17 Gig > filesystem? In the newfs(8) manpage one can find the following: -f frag-size The fragment size of the file system in bytes. It must be a power of two ranging in value between blocksize/8 and blocksize. The default is 1024 bytes. -i number of bytes per inode Specify the density of inodes in the file system. The default is to create an inode for every (4 * frag-size) bytes of data space. If fewer inodes are desired, a larger number should be used; to create more inodes a smaller number should be given. One inode is required for each distinct file, so this value effectively specifies the average file size on the file system. A quick calculation shows that, by default, one inode is created for every (4 * 1024 = ) 4096 bytes on the disk. 17 GB / 4096 bytes gives a result of somewhat more than 4 million inodes. (The exact number depends on exactly how large the filesystem is. 17 GB is not a very precise measurement and I can't tell if GB is used as 10^9 bytes or 2^30 bytes. (The former is what all harddisk manufacturers use, the second is what all operating systems use.)) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message