From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | meetesh(dot)karia(at)alumni(dot)duke(dot)edu |
Cc: | "Craig A(dot) James" <cjames(at)modgraph-usa(dot)com>, pgsql-performance(at)postgresql(dot)org, "Jean-David Dahan" <jd(dot)dahan(at)gmail(dot)com> |
Subject: | Re: Query hanging/not finishing inconsistently |
Date: | 2006-06-23 00:31:10 |
Message-ID: | 9336.1151022670@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
"Meetesh Karia" <meetesh(dot)karia(at)gmail(dot)com> writes:
> ... But, once again we ran into the same
> situation where a query that normally executes in ~15ms wouldn't finish. As
> before, there were no ungranted locks and threads weren't waiting on a
> lock. I attached gdb to one of the stuck postgres processes and got the
> following stack trace:
> #0 0x008967a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1 0x00977e5b in semop () from /lib/tls/libc.so.6
> #2 0x08167298 in PGSemaphoreLock ()
> #3 0x0818bcb5 in LWLockAcquire ()
> #4 0x080a47f5 in SimpleLruWritePage ()
> #5 0x080a48ad in SimpleLruReadPage ()
> #6 0x080a519a in SubTransGetParent ()
> #7 0x080a51f2 in SubTransGetTopmostTransaction ()
> #8 0x0821371c in HeapTupleSatisfiesSnapshot ()
What I'm wondering about is possible deadlock conditions inside slru.c.
There's no deadlock detection for LWLocks, so if it happened, the
processes involved would just freeze up.
If this happens again, would you collect stack traces from all the stuck
processes, not just one?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-06-23 00:43:52 | Re: Why is my (empty) partial index query slow? |
Previous Message | Jim Nasby | 2006-06-22 21:15:13 | Re: Tuning New Server (slow function) |