Date: Thu, 20 Sep 2001 19:25:32 +0200 From: Erik Trulsson <ertr1013@student.uu.se> To: "Dreamtime.net Inc." <clients@dreamtime.net> Cc: questions@freebsd.org Subject: Re: Inodes Message-ID: <20010920192531.A1071@student.uu.se> In-Reply-To: <JEELLDECNKBMDHPNMECKIENHDLAA.clients@dreamtime.net> References: <JEELLDECNKBMDHPNMECKIENHDLAA.clients@dreamtime.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.)) -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010920192531.A1071>