X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4D878D9A19 for ; Wed, 28 Sep 2005 04:07:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94905-04 for ; Wed, 28 Sep 2005 07:07:08 +0000 (GMT) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.195]) by svr1.postgresql.org (Postfix) with ESMTP id 81B71D987E for ; Wed, 28 Sep 2005 04:07:08 -0300 (ADT) Received: by qproxy.gmail.com with SMTP id v40so298352qbe for ; Wed, 28 Sep 2005 00:07:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=bajyxqNhaBDUZBFaJMKk7g7Xz4LPzI5Eg9XxRwrOrY1AT0ZjrAbbgnayljAZlGusBPMNyOm8xGZZ0UAOLk3J2CHUTtxiBdGICbKmz7b1VokULk+X46V+eN6rrNJXTM8C98GT4n1AT1QoZXno+aHtn941HhgR8fVSWga7GdY4OVs= Received: by 10.64.213.16 with SMTP id l16mr916101qbg; Wed, 28 Sep 2005 00:07:07 -0700 (PDT) Received: by 10.64.195.4 with HTTP; Wed, 28 Sep 2005 00:07:07 -0700 (PDT) Message-ID: <9e4684ce05092800075d37d0cc@mail.gmail.com> Date: Wed, 28 Sep 2005 09:07:07 +0200 From: hubert depesz lubaczewski Reply-To: hubert depesz lubaczewski To: PostgreSQL General , pgsqlperform Subject: database bloat, but vacuums are done, and fsm seems to be setup ok MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1249_15693059.1127891227369" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.995 required=5 tests=[HTML_00_10=0.138, HTML_MESSAGE=0.001, RCVD_BY_IP=0.024, RCVD_IN_BL_SPAMCOP_NET=1.832] X-Spam-Level: * X-Archive-Number: 200509/1092 X-Sequence-Number: 84107 ------=_Part_1249_15693059.1127891227369 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi setup: postgresql 8.0.3 put on debian on dual xeon, 8GB ram, hardware raid. database just after recreation from dump takes 15gigabytes. after some time (up to 3 weeks) it gets really slow and has to be dump'ed and restored. as for fsm: end of vacuum info: INFO: free space map: 248 relations, 1359140 pages stored; 1361856 total pages needed DETAIL: Allocated FSM size: 1000 relations + 10000000 pages =3D 58659 kB shared memory. so it looks i have plenty of space in fsm. vacuums run constantly. 4 different tasks, 3 of them doing: while true vacuum table sleep 15m done with different tables (i have chooses the most updated tables in system). and the fourth vacuum task does the same, but without specifying table - so it vacuumes whole database. after last dump/restore cycle i noticed that doing reindex on all indices i= n database made it drop in side from 40G to about 20G - so it might be that i will be using reindex instead of drop/restore. anyway - i'm not using any special indices - just some (117 to be exact) indices of btree type. we use simple, multi-column, partial and multi-colum= n partial indices. we do not have functional indices. database has quite huge load of updates, but i thought that vacum will guar= d me from database bloat, but from what i observed it means that vacuuming of b-tree indices is somewhat faulty. any suggestions? what else can i supply you with to help you help me? best regards depesz ------=_Part_1249_15693059.1127891227369 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi
setup:
postgresql 8.0.3 put on debian on dual xeon, 8GB ram, hardware raid.

database just after recreation from dump takes 15gigabytes.
after some time (up to 3 weeks) it gets really slow and has to be dump'ed a= nd restored.

as for fsm:
end of vacuum info:
INFO:  free space map: 248 relations, 1359140 pages stored; 1361856 to= tal pages needed
DETAIL:  Allocated FSM size: 1000 relations + 10000000 pages =3D 58659= kB shared memory.

so it looks i have plenty of space in fsm.

vacuums run constantly.
4 different tasks, 3 of them doing:
while true
vacuum table
sleep 15m
done
with different tables (i have chooses the most updated tables in system).
and the fourth vacuum task does the same, but without specifying table - so= it vacuumes whole database.

after last dump/restore cycle i noticed that doing reindex on all indices in database made it drop in side from 40G to about 20G - so it might be that i will be using reindex instead of drop/restore.
anyway - i'm not using any special indices - just some (117 to be exact) indices of btree type. we use simple, multi-column, partial and multi-column partial indices. we do not have functional indices.

database has quite huge load of updates, but i thought that vacum will guard me from database bloat, but from what i observed it means that vacuuming of b-tree indices is somewhat faulty.

any suggestions? what else can i supply you with to help you help me?

best regards

depesz
------=_Part_1249_15693059.1127891227369--