Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by postgresql.org (Postfix) with ESMTP id 9ECCC474E49 for ; Wed, 24 Jul 2002 07:13:01 -0400 (EDT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id g6OBCfu21055; Wed, 24 Jul 2002 13:12:41 +0200 Received: from dell-01.mm.eutelsat.org (IDENT:root@dell-01.mm.eutelsat.org [194.214.173.17]) by nts-03.mm.eutelsat.org (8.9.3/8.8.7) with ESMTP id MAA32202; Wed, 24 Jul 2002 12:06:16 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by dell-01.mm.eutelsat.org (8.11.2/8.8.7) with SMTP id g6OBCAc02479; Wed, 24 Jul 2002 13:12:10 +0200 Message-ID: <015601c23303$58a63040$d60ffea9@GMENDOLA2> From: "Gaetano Mendola" To: "Michael G. Martin" Cc: "pgsql-admin" References: <4.2.2.20020723110231.01daf8c0@ecint.ecinet.com> <1027448992.25561.25.camel@skymaster> <1027448282.15044.24.camel@sargao> <3D3DC06C.8010707@vpmonline.com> Subject: Re: Postgres performance slowly gets worse over a month Date: Wed, 24 Jul 2002 13:14:58 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200207/333 X-Sequence-Number: 5017 "Michael G. Martin" wrote: > Check this value in the postgresql.con file: > > max_fsm_pages = 100000 > > I had the same problem with the db growing, index no longer being used, > despite vacuums each night. Somewhere, there is a thread on this. > > Anyway, If you look at the vacuum stats each time your run vacuum, looks > to see how many pages are being updated between vacuums--i looked at the > removed x tuples in y pages value. Then, set this value to be greater > than the number of pages changed between vacuums. If more pages are > being updated between vacuums than what max_fsm_pages allows, the extra > pages won't be marked to be re-used--from what I understand. This then > results in the db growing and the optimizer starts to chose full table > scans since the db spans so many pages on the disk--at least this is > what happened in my db. Can you explain me this line that I obatin in the log after a vacuum analyze ? --Relation ua_user_data_exp-- 2002-07-21 05:00:02 [28492] DEBUG: Pages 1402: Changed 2, reaped 1192, Empty 0, New 0; Tup 4277: Vac 16207, Keep/VTL 0/0, Crash 0, UnUsed 1, MinLen 393, MaxLen 680; Re-using: Free/Avail. Space 9148944/9141356; EndEmpty/Avail. Pages 0/1191. CPU 0.00s/0.03u sec. I'm wondering about "Re-using: Free/Avail. Space 9148944/9141356" Ciao Gaetano