Maximum blocksize for FFS?

Maxim Konovalov maxim.konovalov at gmail.com
Mon Mar 5 15:54:22 UTC 2012


Hi Kirk,

> > On Tue, Dec 13, 2011 at 7:18 PM, Kirk McKusick <mckusick at mckusick.com> wrote:
> > > The default blocksize in FreeBSD 9.0 is 32K/4K. We have been
> > > running with this size in -current for a almost a year with no
> > > reported problems.
> >
> > Hi,
> >
> > There is a reported problem:
> > The number of inode was divided by two with FreeBSD 9.0 (PR
> > bin/162659) and this create some problems because "the number of
> > fragments per inode (NFPI) was not adapted to the new default block
> > size" (Bruce Evans'explanation [1]).
> >
> > Regards,
> >
> > Olivier
> >
> > [1] http://lists.freebsd.org/pipermail/freebsd-bugs/2011-December/046713.html
>
> Thanks for bringing your report to my attention. I have applied the
> suggested change (reducing NFPI from 4 to 2) so as to keep the default
> number of inodes for a 32K/4K filesystem the same as were created on
> a 16K/2K filesystem.
>
Does it make sense to commit the following diff as well (as Bruce
pointed out the comment is not true anymore)?

Index: param.h
===================================================================
--- param.h	(revision 231431)
+++ param.h	(working copy)
@@ -241,9 +241,6 @@
  *		make it too big the kernel will not be able to optimally use
  *		the KVM memory reserved for the buffer cache and will wind
  *		up with too-few buffers.
- *
- *		The default is 16384, roughly 2x the block size used by a
- *		normal UFS filesystem.
  */
 #define MAXBSIZE	65536	/* must be power of 2 */
 #define BKVASIZE	16384	/* must be power of 2 */
%%%

-- 
Maxim Konovalov


More information about the freebsd-fs mailing list