Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0193F6323AA for ; Sat, 5 Jun 2010 19:41:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 12508-05 for ; Sat, 5 Jun 2010 22:41:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mtu.net (mtu.net [204.11.35.17]) by mail.postgresql.org (Postfix) with ESMTP id 4AB7463234F for ; Sat, 5 Jun 2010 19:41:09 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mtu.net (Postfix) with ESMTP id E0AD7143E768; Sat, 5 Jun 2010 18:41:06 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mtu.net Received: from mtu.net ([127.0.0.1]) by localhost (mtu.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0pY6kslODqvN; Sat, 5 Jun 2010 18:41:05 -0400 (EDT) Received: from [192.168.42.2] (jon [76.17.225.95]) (Authenticated sender: jpschewe) by mtu.net (Postfix) with ESMTPSA id 6E0DF143E766; Sat, 5 Jun 2010 18:41:05 -0400 (EDT) Message-ID: <4C0AD280.5020105@mtu.net> Date: Sat, 05 Jun 2010 17:41:04 -0500 From: Jon Schewe User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.0.4-1.1.1 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Greg Smith CC: pgsql-performance@postgresql.org Subject: Re: How filesystems matter with PostgreSQL References: <4C08EEDF.7090403@mtu.net> <4C0AD180.90607@2ndquadrant.com> In-Reply-To: <4C0AD180.90607@2ndquadrant.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-10 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/115 X-Sequence-Number: 38971 On 06/05/2010 05:36 PM, Greg Smith wrote: > Jon Schewe wrote: >> The tests were all done on an opensuse 11.2 64-bit machine, >> on the same hard drive (just ran mkfs between each test) on the same >> input with the same code base. > > So no controller card, just the motherboard and a single hard drive? Correct. > If that's the case, what you've measured is which filesystems are > safe because they default to flushing drive cache (the ones that take > around 15 minutes) and which do not (the ones that take >=around 2 > hours). You can't make ext3 flush the cache correctly no matter what > you do with barriers, they just don't work on ext3 the way PostgreSQL > needs them to. > So the 15 minute runs are doing it correctly and safely, but the slow ones are doing the wrong thing? That would imply that ext3 is the safe one. But your last statement suggests that ext3 is doing the wrong thing.