X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0A3589FB208 for ; Tue, 1 Aug 2006 23:06:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 73565-01 for ; Tue, 1 Aug 2006 23:06:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linda-2.paradise.net.nz (bm-2a.paradise.net.nz [203.96.152.181]) by postgresql.org (Postfix) with ESMTP id DC7A29FB1B8 for ; Tue, 1 Aug 2006 23:06:38 -0300 (ADT) Received: from smtp-2.paradise.net.nz (tclsnelb1-src-1.paradise.net.nz [203.96.152.172]) by linda-2.paradise.net.nz (Paradise.net.nz) with ESMTP id <0J3C004SWLV0ZH@linda-2.paradise.net.nz> for pgsql-performance@postgresql.org; Wed, 02 Aug 2006 14:06:36 +1200 (NZST) Received: from [192.168.1.11] (218-101-28-176.dsl.clear.net.nz [218.101.28.176]) by smtp-2.paradise.net.nz (Postfix) with ESMTP id 9DA943427A3; Wed, 02 Aug 2006 14:06:35 +1200 (NZST) Date: Wed, 02 Aug 2006 14:06:11 +1200 From: Mark Kirkwood Subject: Re: XFS filessystem for Datawarehousing In-reply-to: <012d01c6b5b4$6db33680$0a00a8c0@trivadis.com> To: Milen Kulev Cc: pgsql-performance@postgresql.org Message-id: <44D00893.4060804@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5.0.4 (X11/20060704) References: <012d01c6b5b4$6db33680$0a00a8c0@trivadis.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.033 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/20 X-Sequence-Number: 20205 Milen Kulev wrote: > Is anyone using XFS for storing/retrieving relatively large amount of data (~ 200GB)? > Yes, but not for that large - only about 40-50 GB of database data. > If yes, what about the performance and stability of XFS. I'm pretty happy with the performance, particularly read (get 215MB/s sequential 8K reads from 4 (P)ATA drives setup as software RAID 0). I have always found XFS very stable (used it on servers for several years). > I am especially interested in recommendations about XFS mount options and mkfs.xfs options. > My setup will be roughly this: > 1) 4 SCSI HDD , 128GB each, > 2) RAID 0 on the four SCSI HDD disks using LVM (software RAID) > > > My questions: > 1) Should I place external XFS journal on separate device ? > 2) What should be the journal buffer size (logbsize) ? > 3) How many journal buffers (logbufs) should I configure ? > 4) How many allocations groups (for mkfs.xfs) should I configure > 5) Is it wortj settion noatime ? > 6) What I/O scheduler(elevators) should I use (massive sequencial reads) > 7) What is the ideal stripe unit and width (for a RAID device) ? > > 1-3) I have not done any experimentation with where to put the journal, or its buffer size / number of them (well worth doing I suspect tho). 4) I left it at the default. 5) I use noatime, but have not measured if there is any impact if I leave it off. 6) deadline scheduler seemed to give slightly better performance for sequential performance. 7) I tried out stripe width 2,4 (with 4 disks), and they seemed to give the same results. Stripe unit of 256K (tested 32K, 64K, 128K) seemed to give the best sequential performance. My software raid stripe size was matched to this in each case. I'll be interested to hear what you discover :-) Cheers Mark