From: Jeff Davis <pgsql@j-davis.com>
To: Hannes Dorbath <light@theendofthetunnel.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: 8.3 synchronous_commit
Date: Mon, 21 Jan 2008 14:25:30 -0800
Message-ID: <1200954330.10057.529.camel@dogma.ljc.laika.com> (raw)
In-Reply-To: <fn34ca$2ff8$1@news.hub.org>
References: <fn34ca$2ff8$1@news.hub.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: pgsql@j-davis.com, light@theendofthetunnel.de
Subject: Re: 8.3 synchronous_commit
In-Reply-To: <1200954330.10057.529.camel@dogma.ljc.laika.com>
References: <fn34ca$2ff8$1@news.hub.org> <1200954330.10057.529.camel@dogma.ljc.laika.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox