From owner-freebsd-fs@FreeBSD.ORG Sat Nov 15 22:06:36 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F2E41065676 for ; Sat, 15 Nov 2008 22:06:36 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id C61D08FC2C for ; Sat, 15 Nov 2008 22:06:35 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id mAFM6LKV019524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Nov 2008 09:06:25 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id mAFM6LUg020392; Sun, 16 Nov 2008 09:06:21 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id mAFM6Iqw020391; Sun, 16 Nov 2008 09:06:18 +1100 (EST) (envelope-from peter) Date: Sun, 16 Nov 2008 09:06:18 +1100 From: Peter Jeremy To: "Rick C. Petty" Message-ID: <20081115220617.GF51761@server.vk2pj.dyndns.org> References: <491D5296.3000600@bsd.ee> <20081115014203.GE51761@server.vk2pj.dyndns.org> <20081115045824.GA23464@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TYecfFk8j8mZq+dy" Content-Disposition: inline In-Reply-To: <20081115045824.GA23464@keira.kiwi-computer.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-fs@freebsd.org Subject: Re: Filesystem size and free space X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 22:06:36 -0000 --TYecfFk8j8mZq+dy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Nov-14 22:58:24 -0600, "Rick C. Petty" wrote: >> 16KB with 2KB fragments. Each file or directory needs 256 bytes of >> metadata (its inode). I can't quickly find the size of the filesystem >> metadata but estimate it is <<1% of the filesystem size. > >Not true. With the current defaults, and not including the 320k reserved >at the beginning (for bootblocks, etc.) nor the few MB at the end to align >with a cylinder boundary, UFS2 takes around 3% space for its metadata. >Almost all of this is inode allocation. Note that I explicitly differentiated between the inodes (file metadata) and the rest of the filesystem metadata - superblock replicas, cylinder group headers, free block bitmaps, etc. Inodes do have several % reserved for them by default but the other space is very small. > Most people don't need nearly this >many inodes, but newfs(8) chooses too many instead of too few because runn= ing >out of inodes is more frustrating (I've done it before and I agree). Also, UFS generally tries to allocate a file in the same CG as its initial directory and lots of spare inodes help here. >With the price of drives nowadays, I find complaints about metadata waste= =20 >particularly annoying. Still, I suggest that the OP should use the inode >density parameter to newfs if if insisting that UFS wastes too much space. It is an issue where you are trying to move data from one FS to another whilst reusing the same physical space - which I gather the OP was. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --TYecfFk8j8mZq+dy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkfR9kACgkQ/opHv/APuIeg7gCgtsRU+yOJuc7O91KNv2oczGCT RP4AniDNxW6YhNHRlIC7zogxcQO5upQT =J0/M -----END PGP SIGNATURE----- --TYecfFk8j8mZq+dy--