From owner-freebsd-arch Thu Nov 2 9:25:47 2000 Delivered-To: freebsd-arch@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id E545F37B4CF for ; Thu, 2 Nov 2000 09:25:41 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eA2HPeM38718; Thu, 2 Nov 2000 09:25:40 -0800 (PST) (envelope-from dillon) Date: Thu, 2 Nov 2000 09:25:40 -0800 (PST) From: Matt Dillon Message-Id: <200011021725.eA2HPeM38718@earth.backplane.com> To: Randell Jesup Cc: Marius Bendiksen , Randell Jesup , arch@FreeBSD.ORG Subject: Re: Like to commit my diskprep References: <200011021632.eA2GWZ138286@earth.backplane.com> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : The defaults for -b and -f and -c for newfs/etc are WOEFULLY :out-of-date. See the sysinstall checkin comment I referenced. I use 16K :myself. It's possible larger might be better, especially for large :partitions - perhaps make it variable on partition size.... And 16 for cpg :is truely criminal (can you say thousands of spare root blocks? And very :slow newfs?) : :-- :Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94) :rjesup@wgate.com Not to mention the bytes/inode (-i) If you want fsck to go fast on a big filesystem, reducing the number of inodes helps a lot. I find myself using -i 32768 or -i 65536 or even higher numbers on partitions which hold big database files. da1s1d: newfs /dev/da1s1d mount df -i Filesystem 1K-blocks Used Avail Capacity iused ifree %iused /dev/da1s1d 70491666 2 64852332 0% 1 8962045 0% time fsck /dev/da1s1d 1 files, 1 used, 35245832 free (16 frags, 4405727 blocks, 0.0% fragmentation) 14.681u 2.100s 1:05.92 25.4% 247+6201k 0+1io 0pf+0w newfs -i 32768 /dev/da1s1d mount df -i Filesystem 1K-blocks Used Avail Capacity iused ifree %iused /dev/da1s1d 71331858 2 65625308 0% 1 2240509 0% time fsck /dev/da1s1d 1 files, 1 used, 35665928 free (16 frags, 4458239 blocks, 0.0% fragmentation) 7.480u 0.693s 0:38.34 21.3% 241+6018k 0+1io 0pf+0w Combining it with your -c suggestion (my god, the -c default is ridiculously low! Can we change the default?) newfs -i 32768 -c 100 /dev/da1s1d mount df -i Filesystem 1K-blocks Used Avail Capacity iused ifree %iused /dev/da1s1d 71389936 2 65678740 0% 1 2246397 0% time fsck /dev/da1s1d 1 files, 1 used, 35694967 free (15 frags, 4461869 blocks, 0.0% fragmentation) 7.584u 0.556s 0:18.82 43.1% 248+6172k 0+1io 0pf+0w ^^^^ 18 seconds vs 66 seconds in the default case. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message