Skip site navigation (1) Skip section navigation (2)

Re: 9.1.3 backends getting stuck in 'startup'

From: Jeff Frost <jeff(at)pgexperts(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 9.1.3 backends getting stuck in 'startup'
Date: 2012-04-28 00:45:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
On 04/27/12 17:30, Tom Lane wrote:
> Jeff Frost <jeff(at)pgexperts(dot)com> writes:
>> and I've got 81 more that do not contain bufmgr.c and are also not block on
>> LWLockAcquire.
> Hm ... no smoking gun in what you showed so far.  I also took another
> look through 9.1 bufmgr.c, and I'm darned if I can see any code path
> there that holds a buffer mapping lock for any long interval.
> One possible theory is that you're using pg_buffercache_pages(), which
> does take all those locks.  It tries its best to not hold them long,
> but with a sufficiently large buffer cache there could be an issue.
> (What is the shared_buffers setting on this installation, anyway?)

Tom, what does the startup code path read?  The list of relations or
something?  Just wondering what the contention would be.

Oh, good idea!  Looks like pg_buffercache is installed in this DB.  Customer
reports that it has been installed since the server has existed (and on the
previous server) but is not currently being used, though the issue with the
hanging startups did not start until this morning. Could it still cause
contention even if it's not being executed?

shared_buffers is 8GB on this machine which has 128GB of RAM.

It seems the pooling software that's being used has a max connection lifetime
of 1hr which is what makes this so painful.

Jeff Frost <jeff(at)pgexperts(dot)com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122 

In response to


pgsql-bugs by date

Next:From: Jeff FrostDate: 2012-04-28 01:05:28
Subject: Re: 9.1.3 backends getting stuck in 'startup'
Previous:From: Tom LaneDate: 2012-04-28 00:30:58
Subject: Re: 9.1.3 backends getting stuck in 'startup'

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group