From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 04:04:46 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C34D51065672 for ; Tue, 9 Jun 2009 04:04:46 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6008FC08 for ; Tue, 9 Jun 2009 04:04:46 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n5944ioS027558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Jun 2009 23:04:44 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n5944hbC035471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Jun 2009 23:04:43 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n5944hJ8035469; Mon, 8 Jun 2009 23:04:43 -0500 (CDT) (envelope-from dan) Date: Mon, 8 Jun 2009 23:04:43 -0500 From: Dan Nelson To: Kelly Jones Message-ID: <20090609040443.GA56070@dan.emsphone.com> References: <26face530906081813x5abd6d28i27137b76b0be41c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26face530906081813x5abd6d28i27137b76b0be41c@mail.gmail.com> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Mon, 08 Jun 2009 23:04:44 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: Need a filesystem with "unlimited" inodes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 04:04:47 -0000 In the last episode (Jun 08), Kelly Jones said: > What UFS-like filesystem has unlimited inodes, but is a drop-in > replacement for ext3, and is fairly easy to configure? > > Is UFS2 no longer considered the "best" general-use filesystem? > > Reason I ask: I'm going to create many small (~1K) files on a 100G > disk and thus need at least 100M inodes. > > "newfs -i" maxes out at ~52M inodes (862 groups * 60864 inodes =~ 52M > inodes): > > # newfs -N -i 1 /dev/da1;: same results as -i 2048 > > /dev/da1: 102400.0MB (209715200 sectors) block size 16384, fragment size > 2048 using 862 cylinder groups of 118.88MB, 7608 blks, 60864 > inodes. > > I realize I can use "f 512 -b 4096" to get 200M+ inodes, but I'm willing > to experiment w/ a new filesystem, provided it behaves mostly like UFS. > Thoughts? At this point you're sort of out of the general-use category :) You want ZFS. Or rather, you don't want to try and fsck a UFS filesystem with 200M inodes. The three drawbacks I can think of to ZFS are it's hard to boot from (although you probably aren't booting from da1), it requires more memory than UFS, and there is no ACL support at the moment (not that many people used the ACL support for UFS). If you're already on an amd64 system with 4GB or more RAM you'll be fine. -- Dan Nelson dnelson@allantgroup.com