From owner-freebsd-fs@FreeBSD.ORG Tue May 29 08:00:25 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBCE5106566C; Tue, 29 May 2012 08:00:24 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.freebsd.org (Postfix) with ESMTP id F3DF28FC0C; Tue, 29 May 2012 08:00:23 +0000 (UTC) Received: from c122-106-171-232.carlnfd1.nsw.optusnet.com.au (c122-106-171-232.carlnfd1.nsw.optusnet.com.au [122.106.171.232]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q4T80LLc017581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 May 2012 18:00:21 +1000 Date: Tue, 29 May 2012 18:00:20 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Bruce Evans In-Reply-To: <20120529161802.N975@besplex.bde.org> Message-ID: <20120529175504.K1291@besplex.bde.org> References: <1490568508.7110.1338224468089.JavaMail.root@zimbra.interconnessioni.it> <4FC457F7.9000800@FreeBSD.org> <20120529161802.N975@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@FreeBSD.org, Doug Barton Subject: Re: Millions of small files: best filesystem / best options 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: Tue, 29 May 2012 08:00:26 -0000 On Tue, 29 May 2012, Bruce Evans wrote: > ... > - it is easy to fix ffs to support a minimum block size of 512 (by > reducing its gratuitous limit of MINBSIZE and fixing the few things > that break: > On Mon, 28 May 2012, Doug Barton wrote: >> The good news is that it's a big improvement (I've done similar >> stuff in the past). You'll also want to tweak the -i (inode) value to >> insure that you have sufficient inodes for the number of files you plan >> to store. The default is not likely to be adequate for your needs. > > Big is relative. 4K-blocks with 200-byte files gives a wastage factor > of 20. Metadata alone will be 256 bytes for the inode alone with ffs2. > Only 128 bytes with ffs1. Only 32 bytes with msdosfs. Oops, only a wastage factor of 2.5 with the 512-byte fragments that are normally used with 4K-blocks by ffs. 512-byte blocks with ffs only give a small reduction in metadata size and better block allocation. Bruce