From: Matt Clark <matt@ymogen.net>
To: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: reindex/vacuum locking/performance?
Date: Sun, 5 Oct 2003 17:46:21 +0100
Message-ID: <LFEIJBEOKGPDHCEMDGNFCEPLCFAA.matt@ymogen.net> (raw)
In-Reply-To: <20031005143431.GC3441@libertyrms.info>
> On Sun, Oct 05, 2003 at 12:14:24PM +0100, Matt Clark wrote:
> > more info on how it clobbers shared_buffers?
>
> Vacuum is like a seqscan. It touches everything on a table. So it
> doesn't clobber them, but that's the latest data. It's unlikely your
> buffers are big enough to hold your database, unless your database is
> small. So you'll end up expiring potentially useful data in the
> buffer.
OK I'm definitely missing something here. I thought that the FSM was there
to keep track of potentially free pages, and that all VACUUM did was double
check and then write that info out for all to see? The promise being that a
VACUUM FULL will walk all pages on disk and do a soft-shoe-shuffle to
aggresively recover space, but a simple VACUUM won't (merely confirming
pages as available for reuse).
As for buffers, my understanding is that they are *not* meant to be big
enough to hold the DB, as PG explicitly leaves caching up to the underlying
OS. 'buffers' here meaning shared memory between PG processes, and 'cache'
meaning OS cache. 'buffers' only need to be big enough to hold the
intermediate calcs and the results for any current transactions?
M
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: matt@ymogen.net, andrew@libertyrms.info
Subject: Re: reindex/vacuum locking/performance?
In-Reply-To: <LFEIJBEOKGPDHCEMDGNFCEPLCFAA.matt@ymogen.net>
* 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