From owner-freebsd-questions Fri Sep 15 4:15: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by hub.freebsd.org (Postfix) with ESMTP id 6FF6537B424 for ; Fri, 15 Sep 2000 04:14:59 -0700 (PDT) Received: from parish ([62.253.89.248]) by mta05-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000915111456.YJXM317.mta05-svc.ntlworld.com@parish>; Fri, 15 Sep 2000 12:14:56 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8FBEoO00950; Fri, 15 Sep 2000 12:14:50 +0100 (BST) (envelope-from mark) Date: Fri, 15 Sep 2000 12:14:49 +0100 From: Mark Ovens To: Greg Lehey Cc: Dan Nelson , Bruce Petro , freebsd-questions Subject: Re: Compare FBSD File System Message-ID: <20000915121449.B257@parish> References: <380327008.968949972194.JavaMail.root@web302-mc.mail.com> <20000914140402.A5897@dan.emsphone.com> <20000915112618.L71517@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20000915112618.L71517@wantadilla.lemis.com>; from grog@lemis.com on Fri, Sep 15, 2000 at 11:26:18AM +0930 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 15, 2000 at 11:26:18AM +0930, Greg Lehey wrote: > On Thursday, 14 September 2000 at 14:04:02 -0500, Dan Nelson wrote: > > In the last episode (Sep 14), Bruce Petro said: > >> Could someone shoot back a brief review of how the FBSD file system > >> compares to the old FAT system? General information is fine, but > >> please also cover: > >> > >> 1. Efficient Disk Usage - any min file size etc like fat? > > > > ffs has an 8k blocksize and a 1k fragment size. Small files and the > > ends of large files are put into fragments. > > You have a choice of block and frag size. Basically, > > 1. Frags must be a power of 2 and at least 512 bytes long. > 2. Blocks may contain 1 (I think), 2, 4 or 8 frags. > 3. Theoretically blocks may be any size within the above constraints, > but in practice you'd probably run into problems with blocks of > more than 64 kB. > 4. The larger the block size, the fewer inodes newfs reserves (though > you can override this choice). > Can you clarify the way these are actually used? AIUI, with 8KB blocks and 1KB frags, if a file is 8194 bytes (8KB + 2 bytes) the file will use one whole block and the extra 2 bytes will use 1 frag of another block. The remaining 1022 bytes of that frag will be unavailable to other files but the remaining 7 frags in the block will be (this is why FFS has less wasted space than FAT, which would make the remaining 8190 bytes in the block, cluster in FAT terminology, unavailable). Is this correct? Are the blocks which are used "by frag" in a special reserved area of the disk or can any block be used for this purpose as and when required and, if so, how does the system keep track of which frags in a block are in use? Is it meta-data stored in the directory entries or in the inode table perhaps? > In practice, you'd normally use either 4kB/512B for small files, or 8 > kB/1kB for larger files. > > >> 3. Any disk size limits? I believe I've seen some say there are > >> limits in the size disk you can use, but others seemed to reply > >> and say that that was old limits. > > > > There are always limits; I think the filesystem code has a 1TB > > filesystem-size limit, and you should be able to put a single 1TB > > file in that filesystem without any problems. > > I think the maximum file and file system sizes depend on the block > sizes. I think the 1 TB limit is for 8kB/1kB file systems. > > Greg > -- > When replying to this message, please copy the original recipients. > For more information, see http://www.lemis.com/questions.html > Finger grog@lemis.com for PGP public key > See complete headers for address and phone numbers > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message