Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 1357C9FB48D for ; Thu, 5 Jul 2007 09:01:21 -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 46607-01-6 for ; Thu, 5 Jul 2007 09:01:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by postgresql.org (Postfix) with ESMTP id B387F9FB51C for ; Thu, 5 Jul 2007 09:01:16 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id h29so1884644wxd for ; Thu, 05 Jul 2007 05:01:15 -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=uvBUOXXbW+viUhg2mGssKxHNPsXqjdX1fpslSs8J/K7JhXm2P1mwcLP4KPFPhgzF1HPcgH/e7GhQEbebHB0EIX4SsNb0gFmcxNVqxUeJTmfm2ZlrGSE2il3H2R5f+rLrVM4WjTmKTNruJXdxWDL++0jmrEGmIyQPac9pPPcM3G8= 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=HB3ENy1Fu33SoaFAfitH0I9Ncgkstfokow0t3VINpQ1T9xVDOUEk5EG3RYdzXmajYU/hpALxxj9NqvdxNl0IoPWsMf2+R7xT2qkIy1SWLqzLQDFyMdxUOZEwUZk5KJUf6JjuObcnky44lTeQFPdBVLNdR+rNc7KaJ65S/cZX3Ic= Received: by 10.70.111.2 with SMTP id j2mr12976761wxc.1183636875306; Thu, 05 Jul 2007 05:01:15 -0700 (PDT) Received: by 10.70.90.7 with HTTP; Thu, 5 Jul 2007 05:01:14 -0700 (PDT) Message-ID: <5482c80a0707050501y65892e63h1fe2c891edd224c4@mail.gmail.com> Date: Thu, 5 Jul 2007 14:01:14 +0200 From: Dimitri To: "Gregory Stark" Subject: Re: Filesystem Direct I/O and WAL sync option Cc: "Heikki Linnakangas" , "PostgreSQL Performance" In-Reply-To: <87wsxgcus2.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> <5482c80a0707040326v1229f11dh2a69278365c1de8c@mail.gmail.com> <87wsxgcus2.fsf@oxford.xeocode.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/30 X-Sequence-Number: 25714 Gregory, thanks for good questions! :)) I got more lights on my throughput here :)) The running OS is Solaris9 (customer is still not ready to upgrade to Sol10), and I think the main "sync" issue is coming from the old UFS implementation... UFS mounted with 'forcedirectio' option uses different "sync" logic as well accepting concurrent writing to the same file which is giving here a higher performance level. I did not expect really so big gain, so did not think to replay the same test with direct I/O on and fsync=on too. For my big surprise - it also reached 2800 tps as with fsync=off !!! So, initial question is no more valid :)) As well my tests are executed just to validate server + storage capabilities, and honestly it's really pity to see them used under old Solaris version :)) but well, at least we know what kind of performance they may expect currently, and think about migration before the end of this year... Seeing at least 10.000 random writes/sec on storage sub-system during live database test was very pleasant to customer and make feel them comfortable for their production... Thanks a lot for all your help! Best regards! -Dimitri On 7/4/07, Gregory Stark wrote: > > "Dimitri" writes: > > > 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 :)) > > wow. That's kind of suspicious though. Does the new configuration take > advantage of the lack of the filesystem cache by increasing the size of > shared_buffers? Even then I wouldn't expect such a big boost unless you got > very lucky with the size of your working set compared to the two sizes of > shared_buffers. > > It seems likely that somehow this change is not providing the same > guarantees > as fsync. Perhaps fsync is actually implementing IDE write barriers and the > sync mode is just flushing buffers to the hard drive cache and then > returning. > > What transaction rate do you get if you just have a single connection > streaming inserts in autocommit mode? What kind of transaction rate do you > get > with both sync mode on and fsync=on in Postgres? > > And did you say this with a battery backed cache? In theory fsync=on/off and > shouldn't make much difference at all with a battery backed cache. Stranger > and stranger. > > -- > Gregory Stark > EnterpriseDB http://www.enterprisedb.com > >