On 2011/03/31 12:46, Otto Moerbeek wrote:
> > 
> > In general, the default values and algorithms for allocations could
> > probably do with a tune-up, since of course today's disks are several
> > magnitudes larger than only a few years ago (let alone than those that
> > were around when the bulk of the file system code was written!), and the
> > usage patterns are also in my experience often wildly different in a
> > large file system than in a smaller one.
> 
> We do that already, inode density will be lower for newly created
> partitions, because diskalbel sets larger block and fragment sizes.

Ah, the manual is out-of-date.

Index: newfs.8
===================================================================
RCS file: /cvs/src/sbin/newfs/newfs.8,v
retrieving revision 1.68
diff -u -p -r1.68 newfs.8
--- newfs.8     21 Mar 2010 07:51:23 -0000      1.68
+++ newfs.8     31 Mar 2011 11:10:18 -0000
@@ -169,7 +169,7 @@ The expected average file size for the f
 The expected average number of files per directory on the file system.
 .It Fl i Ar bytes
 This specifies the density of inodes in the file system.
-The default is to create an inode for each 8192 bytes of data space.
+The default is to create an inode for every 4 fragments.
 If fewer inodes are desired, a larger number should be used;
 to create more inodes a smaller number should be given.
 .It Fl m Ar free-space

Reply via email to