Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2000 23:21:18 -0700
From:      Warner Losh <imp@village.org>
To:        hackers@freebsd.org, doc@freebsd.org
Subject:   Request for review of newfs update
Message-ID:  <200012170621.XAA81955@harmony.village.org>

next in thread | raw e-mail | index | archive | help
I've made the following change to newfs man page locally.  Please
comment upon the style of the change as well as its technical
accuracy.  Style comments should be sent to doc@freebsd.org with
imp@freebsd.org cc'd (I'm not on doc@).  Technical content comments
should be sent to hackers@freebsd.org.

The change does two things.  First, it removes the warning about not
being able to boot off file systems that aren't 8k/1k.  There was a
thread here that reported this was no longer the case and that both 4k 
and 16k block sizes work.

The second change gives an example of using a 16k block size and a 4k
fragment size with 100 cylinders per group with a note that this is
expected to give better performance for large file systems.

Comments about changing the default should go to /dev/null, or be
discussed under a different thread. :-)

Warner

Index: newfs.8
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/sbin/newfs/newfs.8,v
retrieving revision 1.28
diff -u -r1.28 newfs.8
--- newfs.8	2000/11/20 16:47:42	1.28
+++ newfs.8	2000/12/17 06:15:48
@@ -335,18 +335,20 @@
 .El
 .Sh EXAMPLES
 .Pp
+.Dl newfs -b 16384 -f 4096 -c 100 /dev/ad3s1a
+.Pp
+Creates a new ufs file system on ad3s1a.
+.Nm
+will use a block size of 16384 bytes, a fragement size of 4096 bytes
+and have 100 cylinders per cylinder group rather than the defaults.
+These values are tend to produce better performance than the defaults
+for file systems larger than about 5 gigabytes.
+.Pp
 .Dl mount_mfs -s 131072 -o nosuid,nodev /dev/da0s1b /tmp
 .Pp
 Mount a 64 MB large memory file system on /tmp, with
 .Xr mount 8
 options nosuid and nodev.
-.Sh BUGS
-The boot code of
-.Fx
-assumes that the file system that carries the
-kernel has blocks of 8 kilobytes and fragments of 1 kilobyte.
-You will
-not be able to boot from a file system that uses another size.
 .Sh SEE ALSO
 .Xr fdformat 1 ,
 .Xr disktab 5 ,


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012170621.XAA81955>