From owner-freebsd-fs@FreeBSD.ORG Mon Jun 11 20:44:14 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 CCF4116A400 for ; Mon, 11 Jun 2007 20:44:14 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 55D4613C545 for ; Mon, 11 Jun 2007 20:44:13 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 25639 invoked by uid 2001); 11 Jun 2007 20:44:13 -0000 Date: Mon, 11 Jun 2007 15:44:13 -0500 From: "Rick C. Petty" To: Ivan Voras Message-ID: <20070611204413.GA25491@keira.kiwi-computer.com> References: <20070611161148.GA19299@keira.kiwi-computer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-fs@freebsd.org Subject: Re: Inode density for database machines - newfs -i X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 20:44:14 -0000 On Mon, Jun 11, 2007 at 10:13:27PM +0200, Ivan Voras wrote: > Francisco Reyes wrote: > > > The current machine is using 2056 inodes for 1.2TB.. with 3,539,382 > > inodes free. For the next machine I will use a higher number in newfs > > until I get the number of free Inodes close to 100K. That will give the > > machine plenty of free inodes. > > How long fsck takes depends on the number of used inodes, not the total > number. That's only true if using UFS2, softupdates, and if the cylinder groups were properly sync'd before shutdown. Otherwise fsck will scan all inodes. > Barring a bug in UFS, you should be able to have as little > inodes as you want, especially if you know for sure what number to expect. > > The only thing that might bite you is if the machine is (sometime in the > future) reassigned to some other duty that suddely requires a lot of inodes. In which case, use growfs to reallocate the default number of inodes. -- -- Rick C. Petty