From: Manfred Koizar <mkoi-pg@aon.at>
To: Rob Nagler <nagler@bivio.biz>
Cc: pgsql-performance@postgresql.org
Subject: Re: vacuum locking
Date: Fri, 17 Oct 2003 19:41:56 +0200
Message-ID: <cm90pvsbml6qdpe9el3qm66ogj7cpdk5ar@email.aon.at> (raw)
In-Reply-To: <16272.4154.489000.227676@gargle.gargle.HOWL>
References: <16272.318.870000.93584@gargle.gargle.HOWL>
<3F9006BF.40906@persistent.co.in>
<16272.4154.489000.227676@gargle.gargle.HOWL>
On Fri, 17 Oct 2003 09:52:26 -0600, Rob Nagler <nagler@bivio.biz>
wrote:
>INFO: Removed 8368 tuples in 427 pages.
> CPU 0.06s/0.04u sec elapsed 1.54 sec.
>INFO: Pages 24675: Changed 195, Empty 0; Tup 1031519: Vac 8368, Keep 254, UnUsed 1739.
> Total CPU 2.92s/2.58u sec elapsed 65.35 sec.
>
>INFO: Removed 232 tuples in 108 pages.
> CPU 0.01s/0.02u sec elapsed 0.27 sec.
>INFO: Pages 74836: Changed 157, Empty 0; Tup 4716475: Vac 232, Keep 11, UnUsed
>641.
> Total CPU 10.19s/6.03u sec elapsed 261.44 sec.
The low UnUsed numbers indicate that FSM is working fine.
>Assuming I vacuum every 15 minutes, it would seem like max_fsm_pages
>should be 1000, because that's about what was reclaimed. The default
>is 10000. Do I need to change this?
ISTM you are VACCUMing too aggressively. You are reclaiming less than
1% and 0.005%, respectively, of tuples. I would increase FSM settings
to ca. 1000 fsm_relations, 100000 fsm_pages and VACUUM *less* often,
say every two hours or so.
... or configure autovacuum to VACUUM a table when it has 10% dead
tuples.
Servus
Manfred
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: mkoi-pg@aon.at, nagler@bivio.biz
Subject: Re: vacuum locking
In-Reply-To: <cm90pvsbml6qdpe9el3qm66ogj7cpdk5ar@email.aon.at>
References: <16272.318.870000.93584@gargle.gargle.HOWL> <3F9006BF.40906@persistent.co.in> <16272.4154.489000.227676@gargle.gargle.HOWL> <cm90pvsbml6qdpe9el3qm66ogj7cpdk5ar@email.aon.at>
* 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