Date: Thu, 4 Apr 1996 13:05:04 +1000 (EST) From: HMG coA reductase <s_koyin@eduserv.its.unimelb.EDU.AU> To: freebsd-questions@freebsd.org Subject: sysinstall's newfs Message-ID: <199604040305.NAA10219@eduserv.its.unimelb.EDU.AU>
next in thread | raw e-mail | index | archive | help
G'day all. I have some observations regarding the state of the filesystem after installing a new copy of FreeBSD. Apparently the sysinstall defaults for newfs are grossly inappropriate and lead to a badly optimised file- system. Here is the report from disklabel: # /dev/wd0s2: type: ESDI disk: wd0s2 bytes/sector: 512 sectors/track: 34 tracks/cylinder: 15 sectors/cylinder: 510 cylinders: 501 # size offset fstype [fsize bsize bps/cpg] a: 49152 0 4.2BSD 0 0 0 # (Cyl. 0 - 96*) b: 32768 49152 swap # (Cyl. 96*- 160*) c: 255510 0 unused 0 0 # (Cyl. 0 - 500) e: 173590 81920 4.2BSD 0 0 0 # (Cyl. 160*- 500*) And here is what df tells me: Filesystem 512-blocks Used Avail Capacity Mounted on mfs_root 1895 1177 718 62% / /dev/wd0a 48124 21000 23272 47% /mnt /mnt/dev/wd0s2e 170512 55032 101836 35% /mnt/usr /dev/matcd0a 1300004 1300004 0 100% /cdrom Notice that the `a' partition has a physical size of 49152, but the file- system only uses 48124 blocks(sectors). The `e' partition is worse, with only 170512 out of 173590 being used. Following are the dumpfs details for partitions a and e: # dumpfs for wd0s2a nbfree 1402 ndir 63 nifree 3026 nffree 3 ncg 1 ncyl 12 size 12288 blocks 12031 bsize 8192 shift 13 mask 0xffffe000 fsize 2048 shift 11 mask 0xfffff800 frag 4 shift 2 fsbtodb 2 cpg 16 bpg 4096 fpg 16384 ipg 3840 minfree 8% optim time maxcontig 7 maxbpg 2048 rotdelay 0ms headswitch 0us trackseek 0us rps 60 ntrak 1 nsect 4096 npsect 4096 spc 4096 symlinklen 60 trackskew 0 interleave 1 contigsumsize 7 nindir 2048 inopb 64 nspf 4 sblkno 8 cblkno 12 iblkno 16 dblkno 256 sbsize 2048 cgsize 4096 cgoffset 1024 cgmask 0xffffffff csaddr 256 cssize 2048 shift 9 mask 0xfffffe00 cgrotor 0 fmod 0 ronly 0 clean 0 (no rotational position table) cs[].cs_(nbfree,ndir,nifree,nffree): (1402,63,3026,3) cylinders in last group 12 blocks in last group 3072 # dumpfs for wd0s2e nbfree 6653 ndir 175 nifree 8243 nffree 42 ncg 10 ncyl 150 size 43397 blocks 42628 bsize 8192 shift 13 mask 0xffffe000 fsize 2048 shift 11 mask 0xfffff800 frag 4 shift 2 fsbtodb 2 cpg 16 bpg 1165 fpg 4660 ipg 1088 minfree 8% optim time maxcontig 7 maxbpg 2048 rotdelay 0ms headswitch 0us trackseek 0us rps 60 ntrak 1 nsect 1165 npsect 1165 spc 1165 symlinklen 60 trackskew 0 interleave 1 contigsumsize 7 nindir 2048 inopb 64 nspf 4 sblkno 8 cblkno 12 iblkno 16 dblkno 84 sbsize 2048 cgsize 2048 cgoffset 292 cgmask 0xffffffff csaddr 84 cssize 2048 shift 9 mask 0xfffffe00 cgrotor 8 fmod 0 ronly 0 clean 0 (no rotational position table) cs[].cs_(nbfree,ndir,nifree,nffree): (721,26,824,2) (176,1,800,34) (787,8,790,1) (804,24,793,0) (528,20,793,0) (760,5,807,0) (973,24,797,3) (1053,25,900,2) (684,17,805,0) (167,25,934,0) cylinders in last group 6 blocks in last group 436 Some note worthy points are: 1. Absence of rotational position table 2. ntrak value of 1, which should be equal to the no. of heads, or tracks per cylinder. 3. nsect == npsect == spc which does not tally with the disklabel values. I'm wondering if anyone has noticed such things, and how you've handled it. I reinstalled the entire system, mounted the FIXIT floppy and newfs both partitions manually using most of the newfs options (can't remember them) and then managed to improve the fs. Is this a `feature' of sysinstall or is there something wrong with my system or disk or whatever? Thanks. XXX iVan NgeOw
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604040305.NAA10219>