X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DD706D1C927 for ; Tue, 5 Aug 2003 19:56:34 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 35675-03 for ; Tue, 5 Aug 2003 16:55:16 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 05CB1D1C918 for ; Tue, 5 Aug 2003 16:56:24 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h75JuNSa012042; Tue, 5 Aug 2003 15:56:23 -0400 (EDT) To: Ludwig Isaac Lim Cc: PostgreSQL Mailing List Subject: Re: Stuck Spinlock Error Message In-reply-to: <20030805035512.67568.qmail@web21603.mail.yahoo.com> References: <20030805035512.67568.qmail@web21603.mail.yahoo.com> Comments: In-reply-to Ludwig Isaac Lim message dated "Mon, 04 Aug 2003 20:55:12 -0700" Date: Tue, 05 Aug 2003 15:56:22 -0400 Message-ID: <12041.1060113382@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/64 X-Sequence-Number: 9787 Ludwig Isaac Lim writes: > I'm guessing that the spinlock error occurs after > there are around hundreds (or thousands) of queued > postmaster processes. Thousands? How large is your max_connections parameter, anyway (and do you really have big enough iron to support it)? The stuck spinlock error implies that some work that should have taken a fraction of a microsecond (namely the time to check and update the internal state of an LWLock structure) took upwards of a minute. Since the process holding the spinlock could lose the CPU, it's certainly physically possible for the actual duration of holding the spinlock to be much more than a microsecond. But the odds of losing the CPU while holding the spinlock are not large, since it's held for just a small number of instructions. And to get an actual "stuck spinlock" failure would imply that the holding process didn't get scheduled again for more than a minute (while some other process that wanted the spinlock *did* get scheduled again --- repeatedly). I suppose this is possible if your machine is sufficiently badly overloaded. regards, tom lane