pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: CHRIS HOOVER <CHRIS.HOOVER@companiongroup.com>
To: pgsql-admin@postgresql.org
Subject: Help determining values for max_fsm_pages, max_fsm_relations
Date: Tue, 28 Sep 2004 10:24:00 -0400
Message-ID: <NYc10c26-4e2947ed@companiongroup.com> (raw)

I need some help tuning my free space map.  I have about 275 GB of db's spread
across 3 DB servers.  Unfortunetly, due to design and bandwidth issues, I am
not able to vacuum during business hours, and can only vacuum at night.  I am
trying to get my free space map big enough to hold all of the pages needed so
I can do a normal vacuum most nights and not a full.  Can someone please help
me understand how to see what I should set my max_fsm_pages and
max_fsm_relations to.

I'm running 7.3.4.

Thanks,

Chris

P.S.

Here is a sample output from my largest table:

INFO:  --Relation public.largest_table--
INFO:  Pages 467808: Changed 7982, reaped 16553, Empty 0, New 0; Tup 27257500:
Vac 230875, Keep/VTL 0/0, UnUsed 30151, MinLen 107, MaxLen 347; Re-using:
Free/Avail. Space 55977512/36230564; EndEmpty/Avail. Pages 0/37071.
        CPU 9.22s/2.27u sec elapsed 150.27 sec.
INFO:  Index largest_table_pkey: Pages 140132; Tuples 27257500: Deleted 230875.
        CPU 5.35s/7.81u sec elapsed 134.08 sec.
INFO:  Rel largest_table: Pages: 467808 --> 463676; Tuple(s) moved: 113607.
        CPU 1.54s/6.39u sec elapsed 88.06 sec.
INFO:  Index largest_table_pkey: Pages 140132; Tuples 27257500: Deleted 113607.
        CPU 4.10s/2.01u sec elapsed 86.46 sec.



Message-ID: <NYc10c26-4e2947ed@companiongroup.com>
Permalink:  ../NYc10c26-4e2947ed@companiongroup.com/
Also on:    postgresql.org/message-id/NYc10c26-4e2947ed@companiongroup.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: CHRIS.HOOVER@companiongroup.com
  Subject: Re: Help determining values for max_fsm_pages, max_fsm_relations
  In-Reply-To: <NYc10c26-4e2947ed@companiongroup.com>
  References: <NYc10c26-4e2947ed@companiongroup.com>

* 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