From owner-freebsd-questions@FreeBSD.ORG Tue Jan 27 08:34:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C52C16A4D0 for ; Tue, 27 Jan 2004 08:34:39 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17DC443D58 for ; Tue, 27 Jan 2004 08:34:11 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i0RGX2jc041228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Jan 2004 16:33:02 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0RGX0qe041220; Tue, 27 Jan 2004 16:33:00 GMT (envelope-from matthew) Date: Tue, 27 Jan 2004 16:33:00 +0000 From: Matthew Seaman To: Heinrich Rebehn Message-ID: <20040127163300.GA8980@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Heinrich Rebehn , questions@freebsd.org References: <40166309.5070607@ant.uni-bremen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <40166309.5070607@ant.uni-bremen.de> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: Recommendations for newfs parameters for UFS2 ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 16:34:39 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 27, 2004 at 02:09:29PM +0100, Heinrich Rebehn wrote: > Hi list, >=20 > Are there any recommendations for the blocksize, bytes/i-node, and > cylinders/group parameters when newfs'ing an UFS2 filesystem? >=20 > I am afraid of ending up with a fs with Gigs of space and no inodes=20 > left, or a fs that is heavily fragmented and slow. >=20 > Which params should i use for a > - 10G > - 100G > - 500G >=20 > filesystem? >=20 > I read man(7) tuning but would like to hear about some real experiences. The parameters given to newfs(8) don't depend on the size of the filesystem, so much as the size of the files you intend to store within it, and the sort of directory structure you want to use (ie. how many files per directory) Many of the tunables in newfs(8) to do with the details of disk geometry don't make sense with modern drives and should be ignored. You should try running 'newfs -N' with various values for the '-g' average file size and '-h' average numbers of files per directory parameters to see what sort of numbers it spits out. You don't have to be too accurate with those file size and files per directory estimates -- order of magnitude is generally good enough. Unless you're going to be storing exceptionally large files (say, typical size 20Mb) or you want to have directories with 5,000 or more files in them, then just using the newfs(8) default values will work very well. One thing you can do for any file system over about 256Mb is drop the free space reserve ('-m' option in newfs(8), or it can be modified in an existing filesystem using tunefs(8)). 1% is more than adequate if you're creating a multi-gigabyte filesystem. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAFpK7dtESqEQa7a0RAiBvAJoDToUIEYsZH6LiOC/+p+JBKXoA0QCeJ/IY vHPini0gM1vznr3RyFVRVR4= =qqNF -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--