Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9FBDA11DBC5 for ; Fri, 27 Apr 2012 21:31:17 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNvZD-0005UZ-57 for pgsql-bugs@postgresql.org; Sat, 28 Apr 2012 00:31:16 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3S0Uw5i009496; Fri, 27 Apr 2012 20:30:58 -0400 (EDT) To: Jeff Frost cc: pgsql-bugs@postgresql.org Subject: Re: 9.1.3 backends getting stuck in 'startup' In-reply-to: <4F9B0347.8020302@pgexperts.com> References: <4F9AC452.3050102@pgexperts.com> <23016.1335546879@sss.pgh.pa.us> <4F9AEB6A.9060706@pgexperts.com> <4F9AEFFE.6090600@pgexperts.com> <25630.1335554264@sss.pgh.pa.us> <4F9AF244.80203@pgexperts.com> <25861.1335554831@sss.pgh.pa.us> <4F9AF746.9060202@pgexperts.com> <4F9B0347.8020302@pgexperts.com> Comments: In-reply-to Jeff Frost message dated "Fri, 27 Apr 2012 13:36:23 -0700" Date: Fri, 27 Apr 2012 20:30:58 -0400 Message-ID: <9495.1335573058@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/200 X-Sequence-Number: 32951 Jeff Frost 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?) regards, tom lane