From: | "Rosser Schwarz" <rschwarz(at)totalcardinc(dot)com> |
---|---|
To: | "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: atrocious update performance |
Date: | 2004-03-17 18:42:22 |
Message-ID: | 002b01c40c4f$95d8a750$2500fa0a@CardServices.TCI.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
while you weren't looking, Tom Lane wrote:
> Hm. It looks like you mistakenly traced psql rather than the backend,
> but since the delay went away we wouldn't have learned
> anything anyhow.
> Have you got any idea what conditions may have changed between seeing
> delay and not seeing delay?
None, offhand. I have noticed that when a large query is running,
the machine can sporadically just freeze--or at least take inordinately
long for some other process, be it top or ls, another query, or whatever
to start. Nothing looks saturated when it happens, and, while you can
count on it to happen, it's not consistent enough to reproduce.
> This is pretty odd too. It looks like it's doing checkpoints every so
> often (look for the writes to pg_control), which a backend engaged in
> a long-running query surely ought not be doing. Need to think about
> why that might be...
Does the fact that all the reads and writes are 32K mean anything out
of the ordinary? $PGSRC/src/include/pg_config_manual.h has BLCKSZ
#defined to 16384. I was running previously with a 32K BLCKSZ, but
that turned out to be rather sub-optimal for as heavily indexed as our
tables are. I've dumped and rebuilt several times since then.
/rls
--
Rosser Schwarz
Total Card, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2004-03-17 19:19:36 | Re: rapid degradation after postmaster restart |
Previous Message | Andrew Sullivan | 2004-03-17 18:11:15 | Re: rapid degradation after postmaster restart |