Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKt5C-0001K4-3Z for pgsql-admin@arkaria.postgresql.org; Thu, 30 Jul 2015 19:01:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKt5B-0003qd-Lh for pgsql-admin@arkaria.postgresql.org; Thu, 30 Jul 2015 19:01:33 +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) (envelope-from ) id 1ZKt3Z-0001wY-5F for pgsql-admin@postgresql.org; Thu, 30 Jul 2015 18:59:53 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZKt3U-0007q1-H1 for pgsql-admin@postgresql.org; Thu, 30 Jul 2015 18:59:52 +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 [179.57.24.220]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id AAE5440125D; Thu, 30 Jul 2015 11:59:41 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 3220075A; Thu, 30 Jul 2015 15:59:39 -0300 (CLT) Date: Thu, 30 Jul 2015 15:59:39 -0300 From: Alvaro Herrera To: John Scalia Cc: "pgsql-admin@postgresql.org" Subject: Re: Autovacuum behavior Message-ID: <20150730185939.GT2441@postgresql.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) 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 John Scalia wrote: > Hi all, > > The autovacuum settings for a 9.4.2 database are shown below, I'm not > absolutely certain if I missed anything: > > autovacuum = on > log_autovacuum_min_duration = 100 > autovacuum_max_workers = 15 > autovacuum_naptime = 10min > #autovacuum_vacuum_threshold = 50 > autovacuum_analyze_threshold = 80 > autovacuum_vacuum_scale_factor = 0.1 > autovacuum_analyze_scale_factor = 0.2 > autovacuum_freeze_max_age = 100000000 > autovacuum_vacuum_cost_delay = 20ms > autovacuum_vacuum_cost_limit = -1 What's the vacuum_cost_limit setting? Maybe they are sleeping for too long, and don't have time to get to some of the other tables because all 15 workers are busy. This gets worse the more workers there are. I don't think the 10min naptime is doing you any favors, is it? If you want them to go faster, maybe you need to lower the cost_delay. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin