Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHJnT-0008Am-Gl for pgsql-general@arkaria.postgresql.org; Wed, 22 Nov 2017 01:25:51 +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 1eHJnS-0000hQ-41 for pgsql-general@arkaria.postgresql.org; Wed, 22 Nov 2017 01:25:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eHJnR-0000fU-Ol for pgsql-general@lists.postgresql.org; Wed, 22 Nov 2017 01:25:49 +0000 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eHJnN-00053x-3h for pgsql-general@postgresql.org; Wed, 22 Nov 2017 01:25:48 +0000 Received: by mail-io0-x230.google.com with SMTP id h205so20768238iof.5 for ; Tue, 21 Nov 2017 17:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :in-reply-to:user-agent; bh=wKoxVTQQ1ywQjPSzyn5uMZ5zt1x2rkeWyppAbncknaU=; b=rWyTBY4hi/sYZK2kKw13+OMOPczaEmYrhk5Y2qA36DMeix9yGDSJ9jDWZUkqkVG/ZB Ty7VMbK72Gyluenp5E5+mod9ZuRfyQj3K8A1DEpDVIvRHybJBGo9wL4XzsuZ9V7aIArR IsnwtIao9RjUQ0pvtUt2edltC5ypEWakiJyYspmN/fWRM8WcEPkdj1qu8FJYQty6fTBo dEkL7DpW2dmzEdVga1MRHHBkygPLMSCmncvSBCcXH4M4sHTYqL31bUdqcxRNaGc0Z6LT cjBITF6PKkerottJ7l1HjfrXTYr18UKhXXHC+Wb6GNMHhOkmzL09Hljt4In1M06a3WJU pYIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:in-reply-to:user-agent; bh=wKoxVTQQ1ywQjPSzyn5uMZ5zt1x2rkeWyppAbncknaU=; b=uoLL5KPdtGIfyYVQ9LJ4gBcCaMlzjqXqMn5WQBNjk9pPWXUCYKgQppLLABhAWJH2PW IBhqmyS047pMMWy8wUid9bcqq1iN6oV8z03xS0JY4rp7Hopd5RS1XSQ5YPU9/gSajPsV K+Gxj45wmFO9tIEFsa0Y4UY7I8aGnahjSHebUCpvgzOQTzX3DijiheTvK5lpfmZ13cbf EjXeX5jXqDqFzjJg4d+aEtilwqL18TGkfVbzraFd5/zned1e46JnXnO1Jh82t9urd3QT 73zlruz6KP4VVFPZLmDeV5pDWuiQk6B5bFeyeg5/EMcFH7JJ9u/KvN6YTP2vhiGM+MRd Elxw== X-Gm-Message-State: AJaThX50yWOVIm9pTq5+i6+FPSLlAbHwmyO7ReT38l844Sw8U7DJPmF1 AbOEmQK3b/DIsE7MXvqL7QyqblJMvLw= X-Google-Smtp-Source: AGs4zMa+CIFEcM1ajxjiQPmCafN0ZEBTheImDW8VCQc+e2Yz8Je4O4Yka1lLlIPw3SuU0ZuFmsDqpw== X-Received: by 10.107.161.209 with SMTP id k200mr20118010ioe.218.1511313942824; Tue, 21 Nov 2017 17:25:42 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id v19sm1381616ite.4.2017.11.21.17.25.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 17:25:42 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 731D1800FD9; Tue, 21 Nov 2017 19:25:41 -0600 (CST) Date: Tue, 21 Nov 2017 19:25:41 -0600 From: Justin Pryzby To: Andres Freund Cc: Tom Lane , pgsql-general@postgresql.org Subject: Re: backends stuck in "startup" Message-ID: <20171122012541.GP5668@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171121235239.5ssxkvmfwvhxavsm@alap3.anarazel.de> <20171121234558.p7rtwkasqfjvpft4@alap3.anarazel.de> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Nov 21, 2017 at 03:45:58PM -0800, Andres Freund wrote: > 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 didn't > > > strace this time, but I believe last time I saw one was waiting in a futex. > > A futex? Hm, that was stock postgres? Yes, from PGDG: [pryzbyj@TS-DB ~]$ rpm -q postgresql10 postgresql10-10.1-1PGDG.rhel6.x86_64 > How many different databases and roles are you having on that system? postgres=# SELECT COUNT(1) FROM pg_roles ; count | 25 postgres=# SELECT COUNT(1) FROM pg_database; count | 15 > I guess iiiiiii is a sanitized name? Yes > Right. I took this to be referring to something before the current > migration, but I might have overinterpreted things. We never had any issue during the ~2 years running PG96 on this VM, until upgrading Monday to PG10.1, and we've now hit it 5+ times. BTW this is a VM run on a hypervisor managed by our customer: DMI: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 06/22/2012 Linux TS-DB 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux Justin