Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B602D9FBF02 for ; Wed, 4 Jul 2007 07:26:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 30435-09 for ; Wed, 4 Jul 2007 07:26:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by postgresql.org (Postfix) with ESMTP id 47A069FBEEC for ; Wed, 4 Jul 2007 07:26:12 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id h29so1609350wxd for ; Wed, 04 Jul 2007 03:26:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C0JcatBH6zwDSEJq7Je1tksxs2UKwQSyErPGizoChRdMvLLva0eSWADQ1db71cdffQXamoSbXdsqcELOUY3PhPPSx+jZQDtaMjPu0dWhYcay6Jd1lxNHPa6TH+lqqYty0F/ftPAB4AGA0+q4UXW1FUfrzYdxxgRMwrB8xcYI3nU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mWB1qv7FlTc3fAVmwRH4aDotm7HbUCOLRXR955EnwvYg3nYZAmX7O+RUeZzWmDkpgWxO11fsXFaKsFd/F4NW6SfDg393SHk+VBvK4UkKTm1/cKbq4+IGy9/2Eamz/sA5oru0/H5jppl5dnN1eXEI3asvBz+aLBfHpHC8USOm6ic= Received: by 10.70.47.19 with SMTP id u19mr8665294wxu.1183544770951; Wed, 04 Jul 2007 03:26:10 -0700 (PDT) Received: by 10.70.90.7 with HTTP; Wed, 4 Jul 2007 03:26:10 -0700 (PDT) Message-ID: <5482c80a0707040326v1229f11dh2a69278365c1de8c@mail.gmail.com> Date: Wed, 4 Jul 2007 12:26:10 +0200 From: Dimitri To: "Gregory Stark" Subject: Re: Filesystem Direct I/O and WAL sync option Cc: "Heikki Linnakangas" , "PostgreSQL Performance" In-Reply-To: <87lkdx0y5d.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5482c80a0707030754o740c82b6s4598dc668720d014@mail.gmail.com> <468A65F5.8020800@enterprisedb.com> <5482c80a0707030826v38c59870ib90599ba43337e72@mail.gmail.com> <87lkdx0y5d.fsf@oxford.xeocode.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/28 X-Sequence-Number: 25712 Yes Gregory, that's why I'm asking, because from 1800 transactions/sec I'm jumping to 2800 transactions/sec! and it's more than important performance level increase :)) Rgds, -Dimitri On 7/4/07, Gregory Stark wrote: > > "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 > >