pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Matthew T. O'Connor <matthew@zeut.net>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
Cc: pgsql-performance@postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] More detail on settings for pgavd?
Date: 21 Nov 2003 09:14:14 -0500
Message-ID: <1069424054.29672.12462.camel@camel> (raw)
In-Reply-To: <3FBD5EEF.7060205@zeut.net>
References: <200311181558.45847.josh@agliodbs.com>
	<3FBC6BED.9090809@myrealbox.com>
	<3FBCD013.3030402@zeut.net>
	<200311200918.30838.josh@agliodbs.com>
	<3FBD5EEF.7060205@zeut.net>

On Thu, 2003-11-20 at 19:40, Matthew T. O'Connor wrote:
> I'm open to discussion on changing the defaults.  Perhaps what it would 
> be better to use some non-linear (perhaps logorithmic) scaling factor.  
> So that you wound up with something roughly like this:
> 
> #tuples   activity% for vacuum
> 1k           100%
> 10k           70%
> 100k         45%
> 1M            20%
> 10M          10%
> 100M          8%
> 


Just thinking out loud here, so disregard if you think its chaff but...
if we had a system table pg_avd_defaults that held what we generally
consider the best default percentages based on reltuples/pages, and
added a column to pg_class (could be some place better but..) which
could hold an overriding percentage, you could then have a column added
to pg_stat_all_tables called vacuum_percentage, which would be a
coalesce of the override percentage or the default percentages based on
rel_tuples (or rel_pages).  This would give autovacuum a place to look
for each table as to when it should vacuum, and gives administrators the
option to tweak it on a per table basis if they find they need a
specific table to vacuum at a different rate than the "standard".   

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




view thread (35+ messages)  latest in thread

Message-ID: <1069424054.29672.12462.camel@camel>
Permalink:  ../1069424054.29672.12462.camel@camel/
Also on:    postgresql.org/message-id/1069424054.29672.12462.camel@camel

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: xzilla@users.sourceforge.net, matthew@zeut.net, josh@agliodbs.com, shridhar_daithankar@myrealbox.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] More detail on settings for pgavd?
  In-Reply-To: <1069424054.29672.12462.camel@camel>

* 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