From owner-freebsd-hackers Sat Dec 16 22:21:25 2000 From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 16 22:21:21 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 08F9437B400; Sat, 16 Dec 2000 22:21:20 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id eBH6LIs01448; Sat, 16 Dec 2000 23:21:19 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id XAA81955; Sat, 16 Dec 2000 23:21:18 -0700 (MST) Message-Id: <200012170621.XAA81955@harmony.village.org> To: hackers@freebsd.org, doc@freebsd.org Subject: Request for review of newfs update Date: Sat, 16 Dec 2000 23:21:18 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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