pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jesper@krogh.cc
To: pgsql-admin@postgresql.org
Subject: Autovacuum not keeping up. (PG 9.2.9)
Date: Thu, 31 Jul 2014 11:25:19 +0200
Message-ID: <26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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



view thread (6+ messages)  latest in thread

Message-ID: <26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc>
Permalink:  ../26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc/
Also on:    postgresql.org/message-id/26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jesper@krogh.cc
  Subject: Re: Autovacuum not keeping up. (PG 9.2.9)
  In-Reply-To: <26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc>
  References: <26e211945432a41a56dd900440f27e6d.squirrel@shrek.krogh.cc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox