Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id F31AF9FB8C1 for ; Tue, 3 Jul 2007 22:13:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 07358-02 for ; Tue, 3 Jul 2007 22:13:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id D313E9FB7AF for ; Tue, 3 Jul 2007 22:13:09 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1I5tQU-0003XV-HI; Wed, 04 Jul 2007 02:13:02 +0100 From: Gregory Stark To: "Dimitri" Cc: "Heikki Linnakangas" , "PostgreSQL Performance" Subject: Re: Filesystem Direct I/O and WAL sync option In-Reply-To: <5482c80a0707030826v38c59870ib90599ba43337e72@mail.gmail.com> (dimitrik.fr@gmail.com's message of "Tue, 3 Jul 2007 17:26:55 +0200") Organization: EnterpriseDB References: <5482c80a0707030754o740c82b6s4598dc668720d014@mail.gmail.com> <468A65F5.8020800@enterprisedb.com> <5482c80a0707030826v38c59870ib90599ba43337e72@mail.gmail.com> X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 1399) Date: Wed, 04 Jul 2007 02:13:02 +0100 Message-ID: <87lkdx0y5d.fsf@oxford.xeocode.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/26 X-Sequence-Number: 25710 "Dimitri" writes: > Yes, disk drives are also having cache disabled or having cache on > controllers and battery protected (in case of more high-level > storage) - but is it enough to expect data consistency?... (I was > surprised about checkpoint sync, but does it always calls write() > anyway? because in this way it should work without fsync)... Well if everything is mounted in sync mode then I suppose you have the same guarantee as if fsync were called after every single write. If that's true then surely that's at least as good. I'm curious how it performs though. Actually it seems like in that configuration fsync should be basically zero-cost. In other words, you should be able to leave fsync=on and get the same performance (whatever that is) and not have to worry about any risks. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com