big transaction slows down over time - but disk seems almost unused

From: Ben <bench(at)silentmedia(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: big transaction slows down over time - but disk seems almost unused
Date: 2006-11-01 05:58:36
Message-ID: Pine.LNX.4.64.0610312141430.5452@GRD.cube42.tai.silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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
transaction? Or am I just doing something wrong?

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2006-11-01 06:01:17 Re: pg_trgm indexes giving bad estimations?
Previous Message Tom Lane 2006-11-01 05:58:24 Re: Help w/speeding up range queries?