From: Tom Lane <tgl@sss.pgh.pa.us>
To: jeremy.guthrie@berbee.com
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: free space map usage
Date: Tue, 14 Oct 2003 15:16:08 -0400
Message-ID: <11798.1066158968@sss.pgh.pa.us> (raw)
In-Reply-To: <200310141154.17227.jeremy.guthrie@berbee.com>
References: <200310141154.17227.jeremy.guthrie@berbee.com>
"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?
regards, tom lane
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jeremy.guthrie@berbee.com
Subject: Re: free space map usage
In-Reply-To: <11798.1066158968@sss.pgh.pa.us>
References: <200310141154.17227.jeremy.guthrie@berbee.com> <11798.1066158968@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