Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4BEE91337B78 for ; Sun, 7 Nov 2010 19:35:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 71328-08 for ; Sun, 7 Nov 2010 23:35:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id 96FE71337B4E for ; Sun, 7 Nov 2010 19:35:33 -0400 (AST) Received: from [192.168.1.7] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lfpnu-1OmBIG1weg-00pIB3; Mon, 08 Nov 2010 00:35:31 +0100 Message-ID: <4CD737C1.9070502@2ndquadrant.com> Date: Sun, 07 Nov 2010 18:35:29 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Marti Raudsepp CC: Andres Freund , pgsql-performance@postgresql.org Subject: Re: Defaulting wal_sync_method to fdatasync on Linux for 9.1? References: <4CCDCAA3.4050805@2ndquadrant.com> <201011010010.28724.andres@anarazel.de> <4CD472CC.80006@2ndquadrant.com> <4CD47FCD.6010106@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:i9sTeUpu0x6PMw34b/G29g3Ys0YDyGbOiiIBWVu1+U4 ZzdigdRCGEnYzJhawpctB9F92K3I/IKj0tYr0/dVwR2YPKCmeF H2fXe3yLTQLsoiAX5NfnK351/MGutCZwrfBAAHEaKPTNUsvCb5 cJOzg8Dv2lb6CZMUZNm5w7ni04z+jXnFzoFLbP7G7VmnOh2WQi 8+lj4yT0AE4eg8PNpBwzTH1mUlktcCgvxuK4oYRYRI= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201011/88 X-Sequence-Number: 41112 Marti Raudsepp wrote: > I will grant you that the details were wrong, but I stand by the conclusion. > I can state for a fact that PostgreSQL's default wal_sync_method > varies depending on the header. > Yes; it's supposed to, and that logic works fine on some other platforms. The question is exactly what the new Linux O_DSYNC behavior is doing, in regards to whether it flushes drive caches out or not. Until you've quantified which of the cases do that--which is required for reliable operation of PostgreSQL--and which don't, you don't have any data that can be used to draw a conclusion from. If some setups are faster because they write less reliably, that doesn't automatically make them the better choice. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books