Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AD84063499B for ; Wed, 1 Apr 2009 05:13:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78286-04 for ; Wed, 1 Apr 2009 05:13:05 -0300 (ADT) X-Greylist: delayed 00:15:04.08195 by SQLgrey-1.7.6 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by mail.postgresql.org (Postfix) with ESMTP id AEF7D632182 for ; Wed, 1 Apr 2009 05:13:05 -0300 (ADT) Received: from zmori.markir.net (121-73-184-50.dsl.telstraclear.net [121.73.184.50]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0KHE00MROWSLBQ10@smtp3.clear.net.nz> for pgsql-performance@postgresql.org; Wed, 01 Apr 2009 20:57:58 +1300 (NZDT) Date: Wed, 01 Apr 2009 20:57:57 +1300 From: Mark Kirkwood Subject: Re: Raid 10 chunksize In-reply-to: To: Scott Carey Cc: Stef Telford , "pgsql-performance@postgresql.org" Message-id: <49D31E85.8050405@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 2.0.0.19 (X11/20090117) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/1 X-Sequence-Number: 33368 Scott Carey wrote: > > A little extra info here >> md, LVM, and some other tools do not allow the > file system to use write barriers properly.... So those are on the bad list > for data integrity with SAS or SATA write caches without battery back-up. > However, this is NOT an issue on the postgres data partition. Data fsync > still works fine, its the file system journal that might have out-of-order > writes. For xlogs, write barriers are not important, only fsync() not > lying. > > As an additional note, ext4 uses checksums per block in the journal, so it > is resistant to out of order writes causing trouble. The test compared to > here was on ext4, and most likely the speed increase is partly due to that. > > [Looks at Stef's config - 2x 7200 rpm SATA RAID 0] I'm still highly suspicious of such a system being capable of outperforming one with the same number of (effective) - much faster - disks *plus* a dedicated WAL disk pair... unless it is being a little loose about fsync! I'm happy to believe ext4 is better than ext3 - but not that much! However, its great to have so many different results to compare against! Cheers Mark