Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsA1F-0002WC-5d for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Oct 2015 13:47:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZsA1E-0008Be-E9 for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Oct 2015 13:47:00 +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 1ZsA1D-0008BS-T5 for pgsql-bugs@postgresql.org; Fri, 30 Oct 2015 13:47:00 +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 1ZsA1A-0008WI-LO for pgsql-bugs@postgresql.org; Fri, 30 Oct 2015 13:46:58 +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 [186.37.20.61]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id B275F4005A3; Fri, 30 Oct 2015 06:46:49 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C98BDCD1; Fri, 30 Oct 2015 10:46:46 -0300 (CLT) Date: Fri, 30 Oct 2015 10:46:46 -0300 From: Alvaro Herrera To: daveg@sonic.net Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower. Message-ID: <20151030134646.GE5726@alvherre.pgsql> References: <20151030133252.3033.4249@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151030133252.3033.4249@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.4 (--) 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 daveg@sonic.net wrote: > With more than a few tens of thousands of tables in one database > autovacuuming slows down radically and becomes ineffective. Increasing the > number of autovacuum workers makes the slow down worse. Yeah, you need to decrease autovacuum_vacuum_cost_delay if you want to make them go faster. (As more workers are started, the existing ones slow down. The intent is that the I/O bandwidth allocation is kept constant regardless of how many workers there are.) > When they updated to 9.4.4 they also increased the number of autovacuum > workers in anticipation of the multixact fix causing extra vacuuming. > Several days later they observed massive catalog bloat, eg pg_attribute was > over 200GB of mostly empty pages. This caused new connections to get stuck > in startup as the catalogs no longer fit in the buffer cache. Oh crap. -- Á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