pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ben <bench@silentmedia.com>
To: Andreas Kostyrka <andreas@kostyrka.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: big transaction slows down over time - but disk seems almost unused
Date: Wed, 1 Nov 2006 07:49:15 -0800
Message-ID: <5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.com> (raw)
In-Reply-To: <1162372861.18283.34.camel@andi-lap>
References: <Pine.LNX.4.64.0610312141430.5452@GRD.cube42.tai.silentmedia.com>
	<1162372861.18283.34.camel@andi-lap>

Memory usage remains consistent, which is to say that postgres is  
using most available system memory all the time, as I configured it  
to. There is no swapping going on.

It's not clear to me why forcing a WAL checkpoint would help  
anything.... but it doesn't matter, as only superusers can do it, so  
it's not an option for me. Unless there's a whole other meaning you  
were implying....?

On Nov 1, 2006, at 1:21 AM, Andreas Kostyrka wrote:

> Am Dienstag, den 31.10.2006, 21:58 -0800 schrieb Ben:
>> I've got a long-running, update-heavy transaction that  
>> increasingly slows
>> down the longer it runs. I would expect that behavior, if there  
>> was some
>> temp file creation going on. But monitoring vmstat over the life  
>> of the
>> transaction shows virtually zero disk activity. Instead, the  
>> system has
>> its CPU pegged the whole time.
>>
>> So.... why the slowdown? Is it a MVCC thing? A side effect of calling
>> stored proceedures a couple hundred thousand times in a single
>
> Memory usage? Have you tried to checkpoint your transaction from  
> time to
> time?
>
> Andreas
>
>> transaction? Or am I just doing something wrong?
>>
>> ---------------------------(end of  
>> broadcast)---------------------------
>> TIP 5: don't forget to increase your free space map settings




view thread (8+ messages)  latest in thread

Message-ID: <5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.com>
Permalink:  ../5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.com/
Also on:    postgresql.org/message-id/5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.com

 · 

reply

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: bench@silentmedia.com, andreas@kostyrka.org
  Subject: Re: big transaction slows down over time - but disk seems almost unused
  In-Reply-To: <5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.com>
  References: <Pine.LNX.4.64.0610312141430.5452@GRD.cube42.tai.silentmedia.com> <1162372861.18283.34.camel@andi-lap> <5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.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