From: Lars <lhofhansl@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Ivan Voras <ivoras@freebsd.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: UPDATEDs slowing SELECTs in a fully cached database
Date: Tue, 12 Jul 2011 21:01:34 -0700
Message-ID: <ye9cxypt1alv93g5j8jtil41.1310529694933@email.android.com> (raw)
shared_buffers is big enough to hold the entire database, and there is plenty of extra space. (verified with PG_buffercache)
So i don't think that is the reason.
Tom Lane <tgl@sss.pgh.pa.us> schrieb:
>Jeff Janes <jeff.janes@gmail.com> writes:
>> On 7/12/11, lars <lhofhansl@yahoo.com> wrote:
>>> The fact that a select (maybe a big analytical query we'll run) touching
>>> many rows will update the WAL and wait
>>> (apparently) for that IO to complete is making a fully cached database
>>> far less useful.
>>> I just artificially created this scenario.
>
>> I can't think of any reason that that WAL would have to be flushed
>> synchronously.
>
>Maybe he's running low on shared_buffers? We would have to flush WAL
>before writing a dirty buffer out, so maybe excessive pressure on
>available buffers is part of the issue here.
>
> regards, tom lane
>
>--
>Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
>To make changes to your subscription:
>http://www.postgresql.org/mailpref/pgsql-performance
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: lhofhansl@yahoo.com, tgl@sss.pgh.pa.us, jeff.janes@gmail.com, Kevin.Grittner@wicourts.gov, ivoras@freebsd.org
Subject: Re: UPDATEDs slowing SELECTs in a fully cached database
In-Reply-To: <ye9cxypt1alv93g5j8jtil41.1310529694933@email.android.com>
References: <ye9cxypt1alv93g5j8jtil41.1310529694933@email.android.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