From owner-freebsd-hackers Fri Dec 10 12:17:38 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 0EEEE15919; Fri, 10 Dec 1999 12:13:18 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id MAA60500; Fri, 10 Dec 1999 12:13:13 -0800 (PST) (envelope-from dillon) Date: Fri, 10 Dec 1999 12:13:13 -0800 (PST) From: Matthew Dillon Message-Id: <199912102013.MAA60500@apollo.backplane.com> To: Zhihui Zhang Cc: freebsd-hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: Why VMIO directory is a bad idea? References: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :> :(3) Or maybe we can add a parameter to the filesytem, telling it to try to :> :preallocate some contiguous disk space for all directory files. I guess :> :that the cost per bit on disk is less than the cost per bit in memory. :> :> I believe the filesystem already does this. :> : :The FFS tries to allocate space contiguously for any type of file. It :does not PRE-allocate disk space, which will result wasteage of disk space :if that space is not used later. : :-Zhihui I'm sorry, I misread that ... I thought he had said 'allocate'. It definitely does not preallocate disk space. FFS is designed to to avoid fragmentation so the blocks that it allocates when appending to a file (or directory) tend to be contiguous. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message