Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6CA852E0250 for ; Mon, 21 Jan 2008 18:25:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 12226-01 for ; Mon, 21 Jan 2008 18:25:35 -0400 (AST) Received: from serv01.siteground137.com (ns1.siteground137.com [67.15.250.10]) by postgresql.org (Postfix) with ESMTP id ACD322E011F for ; Mon, 21 Jan 2008 18:25:35 -0400 (AST) Received: from cragnux.laika.com ([209.162.219.253]:53634 helo=dogma.ljc.laika.com) by serv01.siteground137.com with esmtpa (Exim 4.68) (envelope-from ) id 1JH55B-0001KG-NM; Mon, 21 Jan 2008 16:25:33 -0600 Subject: Re: 8.3 synchronous_commit From: Jeff Davis To: Hannes Dorbath Cc: pgsql-performance@postgresql.org In-Reply-To: References: Content-Type: text/plain Date: Mon, 21 Jan 2008 14:25:30 -0800 Message-Id: <1200954330.10057.529.camel@dogma.ljc.laika.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground137.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - j-davis.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/165 X-Sequence-Number: 28404 On Mon, 2008-01-21 at 22:55 +0100, Hannes Dorbath wrote: > I might completely misunderstand this feature. Shouldn't > "synchronous_commit = off" improve performance? > > Whatever I do, I find "synchronous_commit = off" to degrade performance. > > Especially it doesn't like the CFQ I/O scheduler, it's not so bad with > deadline. Synthetic load like > The CFQ scheduler is bad for performance in the tests that I have run. When I have a chance I'll put together some tests to try to demonstrate that. The reason it may be bad in your case is if you have many backends commit many transactions asynchronously, and then the WAL writer tries to make those transactions durable, CFQ might think that the WAL writer is "unfairly" using a lot of I/O. This is just speculation though. Regards, Jeff Davis