From owner-freebsd-questions Sun May 6 16:30:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 4778237B422 for ; Sun, 6 May 2001 16:30:53 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 30101 invoked by uid 100); 6 May 2001 23:30:51 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15093.57003.451981.108064@guru.mired.org> Date: Sun, 6 May 2001 18:30:51 -0500 To: Jan Conrad Cc: questions@freebsd.org Subject: Re: newfs options In-Reply-To: <60672368@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jan Conrad types: > Hi, > > I would like to ask whether there is any need to choose newfs options > different from -b 8192 -f 1024 for larger partitions? > > For example, one of our partitions for homedirs (30GB) has an average file > size of 50kB. I guess it's just happy with the defaults. > > However, we have a partition (again 30GB) with an average file size of 5 MB! > What about that? > > any hints Yeah. You probably don't want to change the block size. Raising the block sizes raise the maximum file system and file sizes. Unless you're running into those, you don't need to raise it, and your file systems aren't anywhere near that size. The fragment size is limited by the block size. You can expect an average of 1/2 the fragment size of unused space per file. Raising the fragment size is probably a bad thing. Finally, raising the block size changes the behavior of the I/O system. If you know the files on the file system are going to be read in large contiguous chunks, you might want to raise the block size. Or you might want to raise maxcontig instead. The other thing to look at if you've got a lot of large files is changing the number of bytes per inode. By default, the system allocates a *lot* of inodes. You can lower that value if you know you won't need a lot of them. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message