Received: with ECARTIS (v1.0.0; list xfs); Fri, 15 Feb 2008 21:07:29 -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=-2.5 required=5.0 tests=BAYES_00,J_CHICKENPOX_43 autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m1G57Hw1032508 for ; Fri, 15 Feb 2008 21:07:18 -0800 X-ASG-Debug-ID: 1203138462-2b5702c30000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from rv-out-0910.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 17A0FE36B18 for ; Fri, 15 Feb 2008 21:07:42 -0800 (PST) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by cuda.sgi.com with ESMTP id 1IHnTHutEqBCBf1p for ; Fri, 15 Feb 2008 21:07:42 -0800 (PST) Received: by rv-out-0910.google.com with SMTP id k20so576545rvb.32 for ; Fri, 15 Feb 2008 21:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=njBDmaQlkhjjyabhz8BqP8PSJu0arxXKmZMeRXfkT8g=; b=B3rQJ/z/CqQR2RfK5PPLtk3YiPCBIqSk+XDiaivAlF0KF4XG3d1i9XAXsICFaJ4p33eYMmOZUZgvO9aYuuzzf1qfnTt/eunI3BxJOwtmu+wTbBUaMzmM9uk8QQ3L6+BYRNz3CJKLbIOMP3i7BSmaIcKu3EC6M272yI1aCh1qYxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=go2eHfIBQVbTR+kJJb5so+jRWsYRKHy3dt+ISNLfSPzH46HfEWsXi4vFF7UuHgPq3YxBwWjmW23ecyHR6IN641jZXOVkHBlz/X65Qy1wtvse4O/AvIFBiNn+jrotmiPb5MeIBoEzumAvEO93nhrMNM+QiOb293J2CyKos33SdhY= Received: by 10.142.187.2 with SMTP id k2mr299435wff.77.1203138071067; Fri, 15 Feb 2008 21:01:11 -0800 (PST) Received: by 10.142.166.3 with HTTP; Fri, 15 Feb 2008 21:01:10 -0800 (PST) Message-ID: Date: Fri, 15 Feb 2008 21:01:10 -0800 From: "Jeff Breidenbach" To: xfs@oss.sgi.com X-ASG-Orig-Subj: tuning, many small files, small blocksize Subject: tuning, many small files, small blocksize MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: eb2a6231184f4aad X-Barracuda-Connect: rv-out-0910.google.com[209.85.198.187] X-Barracuda-Start-Time: 1203138463 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=3.0 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.42325 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/5833/Fri Feb 15 11:30:30 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14463 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: jeff@jab.org Precedence: bulk X-list: xfs 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. The underlying disks use linux software RAID-1 manged by mdadm with 5X redundancy. E.g. 5 drives that completely mirror each other. I am setting up the xfs partition now, and have only played with blocksize so far. 512 byte blocks are most space efficient, 1024 byte blocks cost 3.3% additional space, and 4096 byte blocks cost 22.3% additional space. I do not know of a good way to benchmark filesystem speed; iozone -s 5 did not provide meaningful results due to poor timing quantization. My questions are: 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. b) Are there any other mkfs.xfs paramters that I should play with. Thanks for any response; I did do quite some searching for recommended turning parameters, but did not find definitive answers. The general consensus was xfs does pretty good tuning itself, but almost none of the published benchmarks or recommendation go with small blocksizes and I want to make sure I'm not about to do something totally stupid. Like quadruple the number of seeks on the disk.