Re: Experimental ARC implementation - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Experimental ARC implementation
Date
Msg-id 200311071203.hA7C3I207025@candle.pha.pa.us
Whole thread Raw
In response to Re: Experimental ARC implementation  (Greg Stark <gsstark@mit.edu>)
Responses Re: Experimental ARC implementation  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-hackers
Greg Stark wrote:
> 
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> 
> > Have you considered having the background writer check the pages it is
> > about to write to see if they can be added to the FSM, thereby reducing
> > the need for vacuum?  Seems we would need to add a statistics parameter
> > so pg_autovacuum would know how many tuples the background write added
> > to the freespace map, so it doesn't vacuum a table that doesn't need it.
> 
> This would suffer from the previously mentioned problem of having to pull in
> index pages and dirty them when it's trying to flush and clean pages.

I am confused why the index would be involved in this.

> Conceivably it could just count up the dead tuples and provide that
> information to something like pg_autovacuum so it knows when it's time to run
> a vacuum. I don't see that as all that much of a win over the current
> heuristics. At best it means a big batch update will trigger a vacuum sooner
> so you don't have to manually run vacuum to avoid overflowing the fsm.

Yea, probably.  Another idea would be for tuple reuse to favor pages
already in the cache so it doesn't have to read in a page from disk.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Roger Leigh
Date:
Subject: New database access library, libpqxx-object
Next
From: Dave Cramer
Date:
Subject: Re: [pgsql-www] Changes to Contributor List