Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHHqz-0005kv-Nn for pgsql-general@arkaria.postgresql.org; Tue, 21 Nov 2017 23:21:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHHqy-0006MR-Vp for pgsql-general@arkaria.postgresql.org; Tue, 21 Nov 2017 23:21:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eHHqy-0006MH-NA for pgsql-general@lists.postgresql.org; Tue, 21 Nov 2017 23:21:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eHHqw-0005oA-6l for pgsql-general@postgresql.org; Tue, 21 Nov 2017 23:21:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vALNLGF4006178; Tue, 21 Nov 2017 18:21:16 -0500 From: Tom Lane To: Justin Pryzby cc: pgsql-general@postgresql.org Subject: Re: backends stuck in "startup" In-reply-to: <20171121230926.GA17194@telsasoft.com> References: <20171121230926.GA17194@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Tue, 21 Nov 2017 17:09:26 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6176.1511306476.1@sss.pgh.pa.us> Date: Tue, 21 Nov 2017 18:21:16 -0500 Message-ID: <6177.1511306476@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Justin Pryzby writes: > As $subject: backends are stuck in startup for minutes at a time. I didn't > strace this time, but I believe last time I saw one was waiting in a futex. Hm... > I saved ~40 cores from backends from the most recent incident, which are all > essentially identical: This one seems to be waiting for a shared LWLock (specifically, one of the locks for the shared-buffer lookup hashtable), which could only block if someone else is holding that lock exclusively, which implies that there's at least one backtrace that's different from this. Unless you can find what was holding that lock, there's not much we can learn from this report ... regards, tom lane