pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
FSM settings -- how to tell if they are working?
2+ messages / 2 participants
[nested] [flat]

* FSM settings -- how to tell if they are working?
@ 2003-01-27 18:25 Jeff Boes <jboes@nexcerpt.com>
  2003-01-30 16:02 ` Re: FSM settings -- how to tell if they are working? Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff Boes @ 2003-01-27 18:25 UTC (permalink / raw)
  To: pgsql-admin

We have both test and production databases, about 10 GB total in each.
Recently, I learned about "max_fsm_pages" and "max_fsm_relations". To get
a feel for what changing these settings would do to our production
database, I set the following values in the "test" database:

max_fsm_relations = 100
max_fsm_pages = 350000

but left the production server alone. How can I tell if these new
settings are having any effect?  How can I determine if these numbers are
the best choices?

We perform full vacuums on each of 103 tables every night (including many
very small tables, which exist only to provide references for foreign
keys -- "code tables").

-- 
Jeff Boes                                      vox 616.226.9550 ext 24
Database Engineer                                     fax 616.349.9076
Nexcerpt, Inc.                                 http://www.nexcerpt.com
           ...Nexcerpt... Extend your Expertise



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: FSM settings -- how to tell if they are working?
  2003-01-27 18:25 FSM settings -- how to tell if they are working? Jeff Boes <jboes@nexcerpt.com>
@ 2003-01-30 16:02 ` Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2003-01-30 16:02 UTC (permalink / raw)
  To: Jeff Boes <jboes@nexcerpt.com>; +Cc: pgsql-admin

On Mon, 2003-01-27 at 13:25, Jeff Boes wrote:
> We have both test and production databases, about 10 GB total in each.
> Recently, I learned about "max_fsm_pages" and "max_fsm_relations". To get
> a feel for what changing these settings would do to our production
> database, I set the following values in the "test" database:
> 
> max_fsm_relations = 100
> max_fsm_pages = 350000
> 
> but left the production server alone. How can I tell if these new
> settings are having any effect?  How can I determine if these numbers are
> the best choices?
> 
> We perform full vacuums on each of 103 tables every night (including many
> very small tables, which exist only to provide references for foreign
> keys -- "code tables").
> 

I think you would have to parse your vacuum verbose output to determine
if disk usage is growing in accordance to how your data is coming in. 
You might also be able to simply track the file sizes on disk in your
data directories to determine if any particular table is growing out of
control. 

I will say this, you max_fsm_relations is set to low. Right now your
telling it to only keep track of 100 relations, but your vacuuming 103
tables, not to mention system tables as well. You should probably bump
this up to at least 200, for a more specific # search the archives,
there is a query that can tell you a good number to put this at. 

Robert Treat





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-01-30 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27 18:25 FSM settings -- how to tell if they are working? Jeff Boes <jboes@nexcerpt.com>
2003-01-30 16:02 ` Robert Treat <xzilla@users.sourceforge.net>

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