Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2012 20:39:26 +0100
From:      Paul Schenkeveld <freebsd@psconsult.nl>
To:        freebsd-hackers@freebsd.org
Subject:   Re: UFS1 vs UFS2
Message-ID:  <20121230193926.GA37126@psconsult.nl>
In-Reply-To: <alpine.BSF.2.00.1212301420030.3192@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1212301420030.3192@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 30, 2012 at 02:21:26PM +0100, Wojciech Puchar wrote:
> OpenBSD by default use UFS1 for partitions smaller than 1TB.
> 
> FreeBSD use always UFS2. UFS2 uses double the amount of space for inodes. 
> basic operation seems the same.
> 
> Does it make sense to use UFS1 for small filesystem (on SSD) that would 
> have few millions of files. It will take less space for inodes, but how 
> about performance?

UFS2 became necessary when disk got bigger and sizes and block pointers
in metadata on UFS1 became too small to fully utilize the larger disks.

Because of the larger sizes and pointers UFS2 broke binary compatibility
with UFS1 unavoidably, the switch to UFS2 opened the way for other binary
incompatilble enhancements to the file system like inode birth times and
extended attributes (used by ACL's for example).

It makes perfect sense to use UFS1 on systems where space savings matter
unless your application requires any of the new features that are not
present in UFS1.

Nanobsd(8) for example uses UFS1 by default too.

HTH

Paul Schenkeveld



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121230193926.GA37126>