From: David Gould <daveg@sonic.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jim Nasby <Jim.Nasby@BlueTreble.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Cc: Josh Berkus <josh@agliodbs.com>
Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
Date: Sat, 19 Mar 2016 01:20:09 -0700
Message-ID: <20160319012009.19ca590d@engels> (raw)
In-Reply-To: <13348.1458339831@sss.pgh.pa.us>
References: <20160302034537.0b1c2da7@engels>
<20160315204026.GA29216@alvherre.pgsql>
<20160315142816.5dca09dd@engels>
<56EBAB26.4090905@BlueTreble.com>
<16126.1458308374@sss.pgh.pa.us>
<20160318150818.32982178@engels>
<13348.1458339831@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, 18 Mar 2016 18:23:51 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> David Gould <daveg@sonic.net> writes:
> > 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.
>
> Uh, what? The autovacuum code already looks at the stats maintained by
> the collector. If what you said means anything, it means "let's move the
> autovac scheduling logic into the collector", which seems neither useful
> nor sound from a modularity standpoint.
Well, there is that. Thats why I'm still considering and not yet posting a
concrete proposal on hackers. Really, there is no convenient location for this
decision making as no single process has all the information needed to
optimize autovacuum scheduling across databases. It's a bit of a puzzle.
-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
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-bugs@postgresql.org
Cc: daveg@sonic.net, tgl@sss.pgh.pa.us, Jim.Nasby@BlueTreble.com, alvherre@2ndquadrant.com, jeff.janes@gmail.com, josh@agliodbs.com
Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
In-Reply-To: <20160319012009.19ca590d@engels>
References: <20160302034537.0b1c2da7@engels> <20160315204026.GA29216@alvherre.pgsql> <20160315142816.5dca09dd@engels> <56EBAB26.4090905@BlueTreble.com> <16126.1458308374@sss.pgh.pa.us> <20160318150818.32982178@engels> <13348.1458339831@sss.pgh.pa.us> <20160319012009.19ca590d@engels>
* 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