From owner-freebsd-performance@FreeBSD.ORG Wed Sep 3 13:34:21 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54CE516A4BF for ; Wed, 3 Sep 2003 13:34:21 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56BBD43FAF for ; Wed, 3 Sep 2003 13:34:20 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h83KYGi8064561; Wed, 3 Sep 2003 22:34:17 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Eric Anderson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 03 Sep 2003 15:30:40 CDT." <3F564F70.1000905@centtech.com> Date: Wed, 03 Sep 2003 22:34:16 +0200 Message-ID: <64560.1062621256@critter.freebsd.dk> cc: freebsd-performance@freebsd.org cc: Petri Helenius Subject: Re: 20TB Storage System X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 20:34:21 -0000 In message <3F564F70.1000905@centtech.com>, Eric Anderson writes: >Poul-Henning Kamp wrote: >> In message <3F564DF6.3090200@he.iki.fi>, Petri Helenius writes: >> >> >>>You have any insight into the fsck memory consumption? I remember getting >>>myself saved quite a long time ago by reducing the number of inodes. >> >> >> I have not studied it. I always try to avoid having more than an >> order of magnitude more inodes than I need, it also saves fsck time. >> > >So what's the appropriate way to calculate what blocksize and how many >inodes you should use? "Know your data" :-/ "df -i" will report both block and inode usage for a filesystem. You adjust number if inodes by specifying the expected average number of bytes per inode (== bytes_used / inodes_used) to newfs. block/fragment I have not heuristics for, but I think 32/4 is a good alround setting for multi-GB disks. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.