pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: jeremy.guthrie@berbee.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: free space map usage
Date: 16 Oct 2003 17:38:31 -0400
Message-ID: <1066340311.2070.1608.camel@camel> (raw)
In-Reply-To: <200310141447.05788.jeremy.guthrie@berbee.com>
References: <200310141154.17227.jeremy.guthrie@berbee.com>
	<11798.1066158968@sss.pgh.pa.us>
	<200310141447.05788.jeremy.guthrie@berbee.com>

On Tue, 2003-10-14 at 15:43, Jeremy M. Guthrie wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tuesday 14 October 2003 02:16 pm, Tom Lane wrote:
> > "Jeremy M. Guthrie" <jeremy.guthrie@berbee.com> writes:
> > > Is there any way to determine how much of the free space map is currently
> > > i= n=20
> > > use?(ie. where and what it is tracking?)  I vacuum on a regular basis but
> > > I= =20
> > > never hold in terms of disk space usage.
> >
> > Not in 7.3 AFAIR.  In 7.4 a full-database VACUUM VERBOSE will end with
> > the info you want:
> >
> > regression=# vacuum verbose;
> > ... much cruft ...
> > INFO:  free space map: 11 relations, 144 pages stored; 272 total pages
> > needed DETAIL:  Allocated FSM size: 1000 relations + 20000 pages = 178 kB
> > shared memory. VACUUM
> > regression=#
> >
> > This tells me I'm only using about 1% of the FSM space (272 out of 20000
> > page slots).
> >
> > > I jacked up the free space map=20
> > > pages but this doesn't appear to be working.
> >
> > You know you have to restart the postmaster to make those changes take
> > effect, right?
> Yup.  I still see no effect after restart.
> 

Given that you knew of no way to determine how much free space map you
were using, what is your criteria for it to "appear to be working"?  If
it's that space keeps growing, then your probably not vacuuming
frequently enough.

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




view thread (4+ messages)

Message-ID: <1066340311.2070.1608.camel@camel>
Permalink:  ../1066340311.2070.1608.camel@camel/
Also on:    postgresql.org/message-id/1066340311.2070.1608.camel@camel

 · 

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: xzilla@users.sourceforge.net, jeremy.guthrie@berbee.com, tgl@sss.pgh.pa.us
  Subject: Re: free space map usage
  In-Reply-To: <1066340311.2070.1608.camel@camel>

* 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