Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWOfS-0007Fe-M1 for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 13:30:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWOfS-0001Wj-4V for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 13:30:50 +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) (envelope-from ) id 1aWOfR-0001WE-41 for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 13:30:49 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWOfN-0006DQ-DB for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 13:30:47 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [181.42.23.220]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 5727C400DA6; Thu, 18 Feb 2016 05:30:40 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 02A47584; Thu, 18 Feb 2016 14:30:36 +0100 (CET) Date: Thu, 18 Feb 2016 10:30:36 -0300 From: Alvaro Herrera To: brian@pukkasoft.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13970: Vacuum hangs on particular table; cannot be terminated - requires `kill -QUIT pid` Message-ID: <20160218133036.GA941826@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160218105633.2660.10202@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org brian@pukkasoft.com wrote: > Hi Pg team - I've been running a 9.4.1 server for the last year+. In the > past few months I've had a couple of instances of the server locking up. > I've done more troubleshooting into this last event and uncovered what > appears to be a bug. My situation is much like these: > > http://comments.gmane.org/gmane.comp.db.postgresql.admin/40587 > http://postgresql.nabble.com/VACUUM-hanging-on-PostgreSQL-8-3-1-for-larger-tables-td1898438.html > > The former claims lightweight locks had a bug up thru 9.4.5 but I'm running > the latest 9.4.6 and still experiencing this issue with one table. Here's > the scenario: > > * Either autovacuum OR manual vacuum on a single table hangs > * There is no cpu or i/o usage; top -p shows the vacuum process is > sleeping > * strace of the process id shows rapidly scrolling screenfuls of `select(0, > NULL, NULL, NULL, {0, 1000}) = 0 (Timeout)` This smells like it's looping waiting for a multixact to be fully written out ... except that the uninterruptibility part of that was fixed in time for 9.4.0, Author: Alvaro Herrera Branch: master Release: REL9_5_BR [51f9ea25d] 2014-11-14 15:14:01 -0300 Branch: REL9_4_STABLE Release: REL9_4_0 [137e4da6d] 2014-11-14 15:14:02 -0300 Branch: REL9_3_STABLE Release: REL9_3_6 [d45e8dc52] 2014-11-14 15:14:02 -0300 http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=137e4da6d Can you attach to the looping process with gdb when it's doing the select() dance, and obtain a backtrace? You need debug symbols installed. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs