Received: with ECARTIS (v1.0.0; list xfs); Mon, 18 Feb 2008 14:53:25 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43 autolearn=no version=3.3.0-r574664 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with SMTP id m1IMrID5000475 for ; Mon, 18 Feb 2008 14:53:21 -0800 Received: from snort.melbourne.sgi.com (snort.melbourne.sgi.com [134.14.54.149]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA19694; Tue, 19 Feb 2008 09:53:39 +1100 Received: from snort.melbourne.sgi.com (localhost [127.0.0.1]) by snort.melbourne.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id m1IMrbLF68536083; Tue, 19 Feb 2008 09:53:38 +1100 (AEDT) Received: (from dgc@localhost) by snort.melbourne.sgi.com (SGI-8.12.5/8.12.5/Submit) id m1IMrZSS67997082; Tue, 19 Feb 2008 09:53:35 +1100 (AEDT) X-Authentication-Warning: snort.melbourne.sgi.com: dgc set sender to dgc@sgi.com using -f Date: Tue, 19 Feb 2008 09:53:35 +1100 From: David Chinner To: Jeff Breidenbach Cc: xfs@oss.sgi.com Subject: Re: tuning, many small files, small blocksize Message-ID: <20080218225335.GR155407@sgi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV 0.91.2/5870/Mon Feb 18 11:28:13 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14497 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: dgc@sgi.com Precedence: bulk X-list: xfs On Fri, Feb 15, 2008 at 09:01:10PM -0800, Jeff Breidenbach wrote: > I'm testing xfs for use in storing 100 million+ small files > (roughly 4 to 10KB each) and some directories will contain > tens of thousands of files. There will be a lot of random > reading, and also some random writing, and very little > deletion. ..... > a) Should I just go with the 512 byte blocksize or is that going to be > bad for some performance reason? Going to 1024 is no problem, > but I'd prefer not to waste 20% of the partition capacity by using 4096. I'd suggest wasting 20% of disk space and staying with 4k block size. > b) Are there any other mkfs.xfs paramters that I should play with. Large directory block size (-n size=XXX), esp. if you are putting thousands of files per directory.... Cheers, Dave. -- Dave Chinner Principal Engineer SGI Australian Software Group