From owner-freebsd-fs@FreeBSD.ORG Wed Feb 14 15:07:31 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D54116A400 for ; Wed, 14 Feb 2007 15:07:31 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3506E13C478 for ; Wed, 14 Feb 2007 15:07:31 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l1EF7UI5062259 for ; Wed, 14 Feb 2007 09:07:30 -0600 (CST) (envelope-from anderson@freebsd.org) Message-ID: <45D325B1.7030607@freebsd.org> Date: Wed, 14 Feb 2007 09:07:29 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: "freebsd-fs@freebsd.org" References: <45D321F8.2000808@centtech.com> In-Reply-To: <45D321F8.2000808@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2566/Wed Feb 14 05:44:20 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Subject: Re: fsck times/memory sizes/etc X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2007 15:07:31 -0000 One more test appended to this mail: On 02/14/07 08:51, Eric Anderson wrote: > I just did some quick playing around, doing newfs and fsck's on fresh > file systems. I did one set on a 1Gb malloc'ed md, and another on a > 65GB real disk device. The disk was only being used for this test, > nothing else. > > I don't claim these numbers are perfect, but I did run each test 3-4 > times to make sure they were consistent. > > I found it interesting that the fsck times didn't reduce once all the > files/directories were deleted. > > ################################################ > # mdconfig -a -t malloc -s 1024m > > # time fsck_ufs -f /dev/md0 > ** /dev/md0 > ** Last Mounted on > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 2 files, 2 used, 506485 free (21 frags, 63308 blocks, 0.0% fragmentation) > > real 0m0.014s > user 0m0.009s > sys 0m0.002s > > # mount it > # fill it full of directories and empty files > # df -i /mnt > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on > /dev/md0 1012974 2340 929598 0% 141310 0 100% /mnt > > # umount it > # time fsck_ufs -f /dev/md0 > ** /dev/md0 > ** Last Mounted on /mnt > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 141310 files, 1170 used, 505317 free (21 frags, 63162 blocks, 0.0% > fragmentation) > > real 0m0.266s > user 0m0.103s > sys 0m0.015s > > # mount it, rm all the files > # umount it > # time fsck_ufs -f /dev/md0 > ** /dev/md0 > ** Last Mounted on /mnt > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 2 files, 2 used, 506485 free (21 frags, 63308 blocks, 0.0% fragmentation) > > real 0m0.151s > user 0m0.045s > sys 0m0.024s > > > ################################################## > > # newfs -U /dev/ad2s2a > /dev/ad2s2a: 65397.4MB (133933888 sectors) block size 16384, fragment > size 2048 > using 356 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. > with soft updates > > # time fsck -f /dev/ad2s2a > ** /dev/ad2s2a > ** Last Mounted on > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 2 files, 2 used, 32429667 free (19 frags, 4053706 blocks, 0.0% > fragmentation) > > real 0m9.673s > user 0m0.449s > sys 0m0.000s > > [root@neutrino ~]# mount /dev/ad2s2a /mnt > [root@neutrino ~]# df -i /mnt > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused > Mounted on > /dev/ad2s2a 64859338 4 59670588 0% 2 8384508 0% /mnt > > # fill it full of directories and empty files > # df -i /mnt > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused > Mounted on > /dev/ad2s2a 64859338 138346 59532246 0% 8384510 0 100% /mnt > > # umount it > # time fsck -f /dev/ad2s2a > ** /dev/ad2s2a > ** Last Mounted on /mnt > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 8384510 files, 69173 used, 32360496 free (24 frags, 4045059 blocks, 0.0% > fragmentation) > > real 1m57.315s > user 0m6.046s > sys 0m0.811s > > # memory usage for fsck maxed at 56448kb (~55MB) > > # mount, rm -rf all created files/dirs > # df -i /mnt > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused > Mounted on > /dev/ad2s2a 64859338 6 59670586 0% 2 8384508 0% /mnt > > # umount it > > # time fsck -f /dev/ad2s2a > ** /dev/ad2s2a > ** Last Mounted on /mnt > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 2 files, 3 used, 32429666 free (18 frags, 4053706 blocks, 0.0% > fragmentation) > > real 1m37.347s > user 0m3.054s > sys 0m0.693s > > # memory usage for fsck (on this empty fs) maxed at 9344kb (about 9MB) > ################################################## > > > Eric > > > > > ################################################## # newfs -b 16384 -f 2048 -i 262144 /dev/ad2s2a /dev/ad2s2a: 65397.4MB (133933888 sectors) block size 16384, fragment size 2048 using 294 cylinder groups of 223.11MB, 14279 blks, 896 inodes. # time fsck -f /dev/ad2s2a ** /dev/ad2s2a ** Last Mounted on ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2 files, 2 used, 33445795 free (19 frags, 4180722 blocks, 0.0% fragmentation) real 0m9.703s user 0m0.410s sys 0m0.049s # memory usage reached max of 9344kb (9MB) # fill it up # df -i /mnt Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/ad2s2a 66891594 4342 61535926 0% 263422 0 100% /mnt # umount it # time fsck -f /dev/ad2s2a ** /dev/ad2s2a ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 263422 files, 2171 used, 33443626 free (26 frags, 4180450 blocks, 0.0% fragmentation) real 0m10.491s user 0m0.610s sys 0m0.020s # memory usage reached max of 9344kb (9MB) # mount, rm -rf all created files/dirs # df -i /mnt Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/ad2s2a 66891594 4 61540264 0% 2 263420 0% /mnt # time fsck -f /dev/ad2s2a ** /dev/ad2s2a ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2 files, 2 used, 33445795 free (19 frags, 4180722 blocks, 0.0% fragmentation) real 0m10.427s user 0m0.570s sys 0m0.012s # memory usage for fsck (on this empty fs) maxed at 9344kb (about 9MB) ##################################################