pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Patrick Hatcher <pathat@comcast.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: determining max_fsm_pages
Date: Fri, 29 Oct 2004 10:37:23 -0400
Message-ID: <15929.1099060643@sss.pgh.pa.us> (raw)
In-Reply-To: <41824E05.8000903@comcast.net>
References: <41824E05.8000903@comcast.net>

Patrick Hatcher <pathat@comcast.net> writes:
> My question is this:  I have about 8 databases running on this server.  
> When I do a vacuum full on each of these databases, there is a INFO 
> section that I assume is the total pages used for that database.  Should 
> add ALL these individual pages together and pad the total and use this 
> as my new max_fsm_pages?  Should I do the same thing with max_fsm_relations?

No, the numbers shown at the end of a vacuum verbose printout reflect
the current cluster-wide FSM demand.  BTW you do *not* want to use FULL
because that's not going to reflect the FSM requirements when you are
just running normal vacuums.

I would vacuum all your databases (to make sure each one's FSM contents
are pretty up-to-date) and then take the numbers shown by the last one
as your targets.

If you find yourself having to raise max_fsm_relations, it may be
necessary to repeat the vacuuming cycle before you can get a decent
total for max_fsm_pages.  IIRC, the vacuum printout does include in
"needed" a count of pages that it would have stored if it'd had room;
but this is only tracked for relations that have an FSM relation entry.

			regards, tom lane



view thread (3+ messages)

Message-ID: <15929.1099060643@sss.pgh.pa.us>
Permalink:  ../15929.1099060643@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15929.1099060643@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pathat@comcast.net
  Subject: Re: determining max_fsm_pages
  In-Reply-To: <15929.1099060643@sss.pgh.pa.us>

* 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