From: | Andrew Sullivan <ajs(at)crankycanuck(dot)ca> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: A long-running transaction |
Date: | 2007-04-03 20:14:20 |
Message-ID: | 20070403201420.GB1519@phlogiston.dyndns.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Tue, Apr 03, 2007 at 10:16:13PM +0800, John Summerfield wrote:
> It is hitting the disk pretty hard now on this machine, but the laptop's
> still going too, and the disk seems to run about half the time, part of
> a second running, part idle (but the intervals are getting shorter).
>
> It struck me as fairly curious that neither postgresql nor the
> application was hogging the CPU.
Why? Nothing about this seems likely CPU bound. It's probably I/O.
I note is number:
> IOwait: 2d 0:46:37.33 28.5% page dea: 16218135
which is pretty awful. Also
> For each record, I update a non-key field in another table; the source
> data for that other table is less than a megabyte.
this is a real issue. Basically, you're constrained at the rotation
speed of your disk, because for each record, you have to first find
then update one row somewhere else.
A
--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
The plural of anecdote is not data.
--Roger Brinner
From | Date | Subject | |
---|---|---|---|
Next Message | John DeSoi | 2007-04-03 20:27:16 | Re: plpgsql function question |
Previous Message | A. Kretschmer | 2007-04-03 19:24:19 | Re: plpgsql function question |