Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahBzt-0002sf-DX for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Mar 2016 08:12:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ahBzs-0007FX-MQ for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Mar 2016 08:12:32 +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_2) (envelope-from ) id 1ahBzq-0007FA-QN for pgsql-bugs@postgresql.org; Sat, 19 Mar 2016 08:12:30 +0000 Received: from d.mail.sonic.net ([64.142.111.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ahBzn-0007vS-1q for pgsql-bugs@postgresql.org; Sat, 19 Mar 2016 08:12:28 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u2J8CJFQ028648 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT); Sat, 19 Mar 2016 01:12:19 -0700 Date: Sat, 19 Mar 2016 01:12:21 -0700 From: David Gould To: Alvaro Herrera Cc: Tom Lane , Jim Nasby , Jeff Janes , Pg Bugs , Josh Berkus Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower. Message-ID: <20160319011221.1b2fbc45@engels> In-Reply-To: <20160318221317.GA182976@alvherre.pgsql> References: <20160318150818.32982178@engels> <20160318221317.GA182976@alvherre.pgsql> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVYkmMMoMdUdfQBJutn4BbHoElq6g28rMMDoAytdn3omOf0TazPNZqQ+Oiv6IPKORIEGjDYUCU5ui8Yh2Zxvw/Wt X-Sonic-ID: C;JjKfTKrt5RGyio36ZLXa/Q== M;AoLXTKrt5RGyio36ZLXa/Q== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Pg-Spam-Score: -2.6 (--) 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 On Fri, 18 Mar 2016 19:13:17 -0300 Alvaro Herrera wrote: > David Gould wrote: > > > I have some thoughts for a different approach. In short, the stats collector > > actually knows what needs vacuuming because queries that create dead tuples > > tell it. I'm considering have the stats collector maintain a queue of > > vacuum work and that autovacuum request work from the stats collector. When I > > have something more concrete I'll post it on hackers. > > Hm, ideally we would have something backpatchable, but this new idea > doesn't sound so to me. I think that having some variant of the patch > you proposed previously would be better for the stable branches. Sorry for the alarm. My plan is to update the current patch to address the problem you described. This is intended to be backpatchable. The other thoughts would be for new development for a future release. -dg -- David Gould 510 282 0869 daveg@sonic.net If simplicity worked, the world would be overrun with insects. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs