Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHIIy-0008Ju-LF for pgsql-general@arkaria.postgresql.org; Tue, 21 Nov 2017 23:50:16 +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 1eHIIx-0007r9-R7 for pgsql-general@arkaria.postgresql.org; Tue, 21 Nov 2017 23:50:15 +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 1eHIIx-0007qc-I3 for pgsql-general@lists.postgresql.org; Tue, 21 Nov 2017 23:50:15 +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 1eHIIr-0006N8-15 for pgsql-general@postgresql.org; Tue, 21 Nov 2017 23:50:14 +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 vALNo5NW007333; Tue, 21 Nov 2017 18:50:05 -0500 From: Tom Lane To: Andres Freund cc: Justin Pryzby , pgsql-general@postgresql.org Subject: Re: backends stuck in "startup" In-reply-to: <20171121234558.p7rtwkasqfjvpft4@alap3.anarazel.de> References: <20171121230926.GA17194@telsasoft.com> <6177.1511306476@sss.pgh.pa.us> <20171121234558.p7rtwkasqfjvpft4@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 21 Nov 2017 15:45:58 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7331.1511308205.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 21 Nov 2017 18:50:05 -0500 Message-ID: <7332.1511308205@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2017-11-21 18:21:16 -0500, Tom Lane wrote: >> Justin Pryzby writes: >>> As $subject: backends are stuck in startup for minutes at a time. I d= idn't >>> strace this time, but I believe last time I saw one was waiting in a f= utex. > A futex? Hm, that was stock postgres? Sure, since we switched to unnamed-POSIX semaphores in v10. On Linux those are futexes. (If Justin saw that while still on 9.6, then it'd be worth looking closer.) regards, tom lane