Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 09:25:40 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Randell Jesup <rjesup@wgate.com>
Cc:        Marius Bendiksen <mbendiks@eunet.no>, Randell Jesup <rjesup@wgate.com>, arch@FreeBSD.ORG
Subject:   Re: Like to commit my diskprep
Message-ID:  <200011021725.eA2HPeM38718@earth.backplane.com>
References:  <Pine.BSF.4.05.10011021602500.10193-100000@login-1.eunet.no> <200011021632.eA2GWZ138286@earth.backplane.com> <ybupukecnoq.fsf@jesup.eng.tvol.net.jesup.eng.tvol.net>

next in thread | previous in thread | raw e-mail | index | archive | help
:        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




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