From owner-freebsd-fs@FreeBSD.ORG Sun Nov 13 15:49:06 2005 Return-Path: X-Original-To: freebsd-fs@FreeBSD.ORG Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 818EE16A41F for ; Sun, 13 Nov 2005 15:49:06 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95C443D55 for ; Sun, 13 Nov 2005 15:49:05 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wluzyr@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id jADFn222056446 for ; Sun, 13 Nov 2005 16:49:03 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id jADFn2s5056445; Sun, 13 Nov 2005 16:49:02 +0100 (CET) (envelope-from olli) Date: Sun, 13 Nov 2005 16:49:02 +0100 (CET) Message-Id: <200511131549.jADFn2s5056445@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG In-Reply-To: <200511071301.jA7D14PT038818@lurza.secnetix.de> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Cc: Subject: Re: UFS2 snapshots on large filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2005 15:49:06 -0000 Oliver Fromme wrote: > user wrote: > > On Sun, 6 Nov 2005, Eric Anderson wrote: > > > [fsck on large file systems taking a long time] > > > > Can you elaborate ? Namely, how long on the 2GB filesystems ? > > It depends very much on the file system parameters. In > particular, it's well worth to lower the inode density > (i.e. increase the -i number argument to newfs) if you > can afford it, i.e. if you expect to have fewer large > files on the file system (such as multimedia files). I just accidentally pulled the wrong power cord ... So now I can give you first-hand numbers. :-} This is a 250 Gbyte data disk that has been newfs'ed with -i 65536, so I get about 4 million inodes: Filesystem iused ifree %iused /dev/ad0s1f 179,049 3,576,789 5% So I still have 95% of free inodes, even though the filesystem is fairly good filled: Filesystem 1K-blocks Used Avail Capacity /dev/ad0s1f 237,652,238 188,173,074 30,466,986 86% fsck(8) took about 2 minutes, which is acceptable, I think. Note that I always disable background fsck (for me personally, it has more disadvantages than advantages). This is what fsck(8) reported when the machin came back up: /dev/ad0s1f: 179049 files, 94086537 used, 24739582 free (26782 frags, 3089100 blocks, 0.0% fragmentation) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Python tricks" is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure . -- Tim Peters