Date: Tue, 27 Jan 2004 16:33:00 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Heinrich Rebehn <rebehn@ant.uni-bremen.de> Cc: questions@freebsd.org Subject: Re: Recommendations for newfs parameters for UFS2 ? Message-ID: <20040127163300.GA8980@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <40166309.5070607@ant.uni-bremen.de> References: <40166309.5070607@ant.uni-bremen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040127163300.GA8980>