Skip site navigation (1) Skip section navigation (2)

Re: Dead Space Map version 2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Dead Space Map version 2
Date: 2007-02-27 05:55:21
Message-ID: 12631.1172555721@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patchespgsql-performance
"Jim C. Nasby" <jim(at)nasby(dot)net> writes:
> Yes, DSM would make FSM recovery more important, but I thought it was
> recoverable now? Or is that only on a clean shutdown?

Currently we throw away FSM during any non-clean restart.  This is
probably overkill but I'm quite unclear what would be a safe
alternative.

> I suspect we don't need perfect recoverability...

The main problem with the levels proposed by Takahiro-san is that any
transition from FROZEN to not-FROZEN *must* be exactly recovered,
because vacuum will never visit an allegedly frozen page at all.  This
appears to require WAL-logging DSM state changes, which is a pretty
serious performance hit.  I'd be happier if the DSM content could be
treated as just a hint.  I think that means not trusting it for whether
a page is frozen to the extent of not needing vacuum even for
wraparound.  So I'm inclined to propose that there be only two states
(hence only one DSM bit per page): page needs vacuum for space recovery,
or not.  Vacuum for XID wraparound would have to hit every page
regardless.

			regards, tom lane

In response to

Responses

pgsql-performance by date

Next:From: Simon RiggsDate: 2007-02-27 07:49:01
Subject: Re: Dead Space Map version 2
Previous:From: Jim C. NasbyDate: 2007-02-27 05:11:44
Subject: Re: Dead Space Map version 2

pgsql-hackers by date

Next:From: Matthew T. O'ConnorDate: 2007-02-27 05:57:13
Subject: Re: autovacuum next steps, take 2
Previous:From: Matthew T. O'ConnorDate: 2007-02-27 05:54:28
Subject: Re: autovacuum next steps, take 2

pgsql-patches by date

Next:From: Inaam RanaDate: 2007-02-27 06:37:40
Subject: Re: [HACKERS] Load distributed checkpoint
Previous:From: Jim C. NasbyDate: 2007-02-27 05:11:44
Subject: Re: Dead Space Map version 2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group