Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7B9AB8A4BA for ; Fri, 27 Apr 2012 16:45:25 -0300 (ADT) Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNr6a-0008Fa-90 for pgsql-bugs@postgresql.org; Fri, 27 Apr 2012 19:45:25 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 17BA44F5DF9; Fri, 27 Apr 2012 14:45:12 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1myfPHj9-M0f; Fri, 27 Apr 2012 14:45:12 -0500 (CDT) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id DEE2A4F5DE3; Fri, 27 Apr 2012 14:45:11 -0500 (CDT) Received: from [10.10.10.5] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 9252B4F5DF9; Fri, 27 Apr 2012 14:45:11 -0500 (CDT) Message-ID: <4F9AF746.9060202@pgexperts.com> Date: Fri, 27 Apr 2012 12:45:10 -0700 From: Jeff Frost Organization: PostgresSQL Experts, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: 9.1.3 backends getting stuck in 'startup' 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> In-Reply-To: <25861.1335554831@sss.pgh.pa.us> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/197 X-Sequence-Number: 32948 On 04/27/12 12:27, Tom Lane wrote: > Jeff Frost writes: >> Any idea what I should be looking for in the backtraces? >> I would imagine I can ignore any that are in InitPostgres, but that still >> leaves quite a few to look through. > I think you can probably skip all that are blocked in LWLockAcquire > called from bufmgr.c:531, at least for a first pass. Calls from > elsewhere in bufmgr.c might be more interesting, and anything that's not > blocked at an LWLockAcquire at all might be even more interesting. > > regards, tom lane Here we go. One that's not blocked on acquiring the lock, but does have bufmgr.c in it: #0 0x00007f252f601a50 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f253163bced in read (file=, buffer=0x7f251f3a1fa0 ":\n", amount=) at /usr/include/bits/unistd.h:45 #2 FileRead (file=, buffer=0x7f251f3a1fa0 ":\n", amount=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/storage/file/fd.c:1191 #3 0x00007f25316547a6 in mdread (reln=, forknum=, blocknum=5825, buffer=0x7f251f3a1fa0 ":\n") at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/storage/smgr/md.c:640 #4 0x00007f25316387f1 in ReadBuffer_common (smgr=0x7f2532d38310, relpersistence=, forkNum=, blockNum=, mode=, strategy=, hit=0x7fffea5fb47f "") at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/storage/buffer/bufmgr.c:438 #5 0x00007f25316391e4 in ReadBufferExtended (reln=0x7f2532cf6990, forkNum=MAIN_FORKNUM, blockNum=5825, mode=RBM_NORMAL, strategy=0x4ff74188) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/storage/buffer/bufmgr.c:246 #6 0x00007f25314817bf in heapgetpage (scan=0x7f2532d335d0, page=5825) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/access/heap/heapam.c:223 #7 0x00007f25314821ba in heapgettup (scan=0x7f2532d335d0, dir=, nkeys=, key=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/access/heap/heapam.c:556 #8 0x00007f25314827bc in heap_getnext (scan=0x7f2532d335d0, direction=523902880) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/access/heap/heapam.c:1345 #9 0x00007f2531711570 in RelationBuildTupleDesc (targetRelId=, insertIt=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:468 #10 RelationBuildDesc (targetRelId=, insertIt=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:882 #11 0x00007f2531712f26 in RelationIdGetRelation (relationId=2616) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:1568 #12 0x00007f2531485aab in relation_open (relationId=2616, lockmode=523902880) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/access/heap/heapam.c:907 #13 0x00007f2531485b33 in heap_open (relationId=6, lockmode=523902880) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/access/heap/heapam.c:1077 #14 0x00007f25317106d7 in LookupOpclassInfo (operatorClassOid=10035, numSupport=1) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:1278 #15 0x00007f2531710c48 in IndexSupportInitialize (relation=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:1159 #16 RelationInitIndexAccessInfo (relation=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:1102 #17 0x00007f2531711d91 in RelationBuildDesc (targetRelId=, insertIt=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:904 #18 0x00007f253171201d in load_critical_index (indexoid=2693, heapoid=2618) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:3080 #19 0x00007f25317124d2 in RelationCacheInitializePhase3 () at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/cache/relcache.c:2892 #20 0x00007f25317293e9 in InitPostgres (in_dbname=, dboid=, username=, out_dbname=) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/utils/init/postinit.c:816 #21 0x00007f253165a908 in PostgresMain (argc=828737552, argv=, username=0x7f2532b90820 "monitoring") at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/tcop/postgres.c:3650 #22 0x00007f2531619ad3 in BackendRun () at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/postmaster/postmaster.c:3606 #23 BackendStartup () at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/postmaster/postmaster.c:3291 #24 ServerLoop () at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/postmaster/postmaster.c:1455 #25 0x00007f253161c57c in PostmasterMain (argc=851231024, argv=0x7f2532b8c8f0) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/postmaster/postmaster.c:1116 #26 0x00007f25315baec3 in main (argc=3, argv=0x7f2532b8c8e0) at /build/buildd/postgresql-9.1-9.1.3/build/../src/backend/main/main.c:199 -- Jeff Frost CTO, PostgreSQL Experts, Inc. Phone: 1-888-PG-EXPRT x506 FAX: 415-762-5122 http://www.pgexperts.com/