Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCmc7-0003hg-3L for pgsql-admin@arkaria.postgresql.org; Thu, 31 Jul 2014 09:25:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCmc5-0007g4-IS for pgsql-admin@arkaria.postgresql.org; Thu, 31 Jul 2014 09:25:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCmc4-0007fl-GB for pgsql-admin@postgresql.org; Thu, 31 Jul 2014 09:25:28 +0000 Received: from port591.ds1-ly.adsl.cybercity.dk ([217.157.234.220] helo=shrek.krogh.cc) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCmbt-0001m6-CH for pgsql-admin@postgresql.org; Thu, 31 Jul 2014 09:25:26 +0000 Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 1D3EA1F00737 for ; Thu, 31 Jul 2014 11:25:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QWMKfqquNWYF for ; Thu, 31 Jul 2014 11:25:19 +0200 (CEST) Received: from shrek.krogh.cc (localhost [IPv6:::1]) by shrek.krogh.cc (Postfix) with ESMTP id 4AD761F00730 for ; Thu, 31 Jul 2014 11:25:19 +0200 (CEST) Received: from 94.101.220.16 (SquirrelMail authenticated user jesper@krogh.cc) by shrek.krogh.cc with HTTP; Thu, 31 Jul 2014 11:25:19 +0200 Message-ID: <26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc> Date: Thu, 31 Jul 2014 11:25:19 +0200 Subject: Autovacuum not keeping up. (PG 9.2.9) From: jesper@krogh.cc To: pgsql-admin@postgresql.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi. I have a large database with a message queue table, that has high activity. The database supports 1-300 client connection concurrently, having transactions open in up to 30 minutes each. Recently I am seeing autuvacuum being issued, but it takes ages to get through the message queue table, with strace showing waiting for semop's for 10's to 100's of seconds. There is no sign in pg_locks about this lock activity, so it is really hard to digest down to the offending processes. Currently autovacuum has been activly running for about 3 days on this table, not finishing a single run. I have seen this before and one option is to pull down everything, vacuum full or cluster the tables and start up again. But I would really like to get to a permanent solution here. Autovacuum for other tables are going fine, so it seems to be related to the high-activity of this table. PG 9.2.9 Thanks. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin