Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIlCT-0005e2-KA for pgsql-general@arkaria.postgresql.org; Sun, 26 Nov 2017 00:53:37 +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 1eIlCR-0001kU-Od for pgsql-general@arkaria.postgresql.org; Sun, 26 Nov 2017 00:53:35 +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 1eIlCR-0001kK-9d for pgsql-general@lists.postgresql.org; Sun, 26 Nov 2017 00:53:35 +0000 Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eIlCO-0003DP-7V for pgsql-general@postgresql.org; Sun, 26 Nov 2017 00:53:33 +0000 Received: by mail-io0-x22b.google.com with SMTP id h205so32070991iof.5 for ; Sat, 25 Nov 2017 16:53:31 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dUh1EaF/bi3ze6dUy7S8CTa3YC3teLfFLjJ8CRXboi4=; b=oOgi/4ZCwkYH5Mfr3CgEXJA8LD7aV7PsJ1OBa78EE1YAs4EoPlOTDaQtunA1KDo2Rb VjSSHIHRatY2pYN7n4NcMRNTgwAii92QNtQ/PJOQ5caAsT6PGZaE9zc4nqF0jJOSgzXF GY/RZz7hJGa0xO08qC+HFFy0ZnaBPg0+kPimqrEKHBdNYYsJU1TwS50ojAewFouwDWP5 9Mx9vCRcVJ9uv8Z8UgWeyL8/Ke9H82O8x1WUHt8I7KWyFOQxg1b/26mqvR0a66Qgkk5P wHaG6xhlV/uTFFrODuxZM1c+7HB7mH9VL51x32gsF+U9a3k5Kw5/YvSXUK+g1QGmtw7Z S48w== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dUh1EaF/bi3ze6dUy7S8CTa3YC3teLfFLjJ8CRXboi4=; b=QQOu6pbVKo+Z8RavtQJ5oX93Up+ZsuLQDR4KjwI455QpS/PYK+/iTV9OKxPYmFawv9 jIB6epqPkQ0tn/hBtSFajrsjSSy+yOdg+pOcXjTvFCTH4RpKtJ+V470d5LyPq7XtJTJC mVTsdOWIEhKMB5M37uTBxjEjAyB/ZwUDrQNcRReZ5bGEr7iaiu6cGu0UrT4lma6kxMxR ObiaJp5mpu7w4itO4GtJ3if4jcJQWlyKOaON1yPGFhRnKG6/xiPvEXqEEqP1xLz7VUQE LuDxzj5kK5DhcZSXO9GTlirSYsU5JxGd1rXLq3FVib2S4zSwkEztTNuvKGaBiiEdR3gU srzQ== X-Gm-Message-State: AJaThX7S4EQm0TIYRdx73zluz/gtXfk2QOnAmzTcLXOx5CrJ6m7NzmqP 84d3EXX8SXxTbuJOTAVxOSYlFg== X-Google-Smtp-Source: AGs4zMavihJiIOx9+/oZiYUDBJOIcBpWbsXnzNMP+Z2/xyRLZcljRfJR2EYldYEOnQNHG+xSMn7soQ== X-Received: by 10.107.46.92 with SMTP id i89mr25057542ioo.8.1511657610046; Sat, 25 Nov 2017 16:53:30 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id w71sm10125718iof.49.2017.11.25.16.53.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 16:53:29 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 0AADE80102B; Sat, 25 Nov 2017 18:53:28 -0600 (CST) Date: Sat, 25 Nov 2017 18:53:28 -0600 From: Justin Pryzby To: Tom Lane Cc: Andres Freund , pgsql-general@postgresql.org Subject: Re: backends stuck in "startup" Message-ID: <20171126005328.GE5668@telsasoft.com> References: <20171122012541.GP5668@telsasoft.com> <5668.1511649959@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5668.1511649959@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Nov 25, 2017 at 05:45:59PM -0500, Tom Lane wrote: > Justin Pryzby writes: > > 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 > > Actually ... I was focusing on the wrong part of that. It's not > your hypervisor, it's your kernel. Running four-year-old kernels > is seldom a great idea, and in this case, the one you're using > contains the well-reported missed-futex-wakeups bug: > > https://bugs.centos.org/view.php?id=8371 > > While rebuilding PG so it doesn't use POSIX semaphores will dodge > that bug, I think a kernel update would be a far better idea. > There are lots of other known bugs in that version. > > Relevant to our discussion, the fix involves inserting a memory > barrier into the kernel's futex call handling: Ouch ! Thanks for the heads up and sorry for the noise. I'm still trying to coax 3 customers off centos5.x, so the 2 customers left running centos6.5 weren't on any of my mental lists.. Justin